HomeFreeBSD

zvol_os: fix build on Linux <3.13

Description

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

Details

Provenance
rob.norris_klarasystems.comAuthored on Apr 8 2024, 5:13 PM
GitHub <noreply@github.com>Committed on Apr 8 2024, 5:13 PM
Parents
rG99741bde59d1: zvol: use multiple taskq
Branches
Unknown
Tags
Unknown