]> git.proxmox.com Git - mirror_zfs.git/commit
zvol_os: fix build on Linux <3.13
authorRob N <rob.norris@klarasystems.com>
Mon, 8 Apr 2024 17:13:27 +0000 (03:13 +1000)
committerGitHub <noreply@github.com>
Mon, 8 Apr 2024 17:13:27 +0000 (10:13 -0700)
commitc13400c9a26985fe817bc777fc0bbb5459bedeaf
tree76b00bc64d1213d0451fef07d1ff08c7d242cb3b
parent99741bde59d1d1df0963009bb624ddc105f7d8dc
zvol_os: fix build on Linux <3.13

99741bde5 introduced zvol_num_taskqs, but put it behind the HAVE_BLK_MQ
define, preventing builds on versions of Linux that don't have it
(<3.13, incl EL7).

Nothing about it seems dependent on blk-mq, so this just moves it out
from behind that define and so fixes the build.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Ameer Hamza <ahamza@ixsystems.com>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16062
module/os/linux/zfs/zvol_os.c