mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 11:18:52 +03:00
config: remove HAVE_BIO_BI_STATUS and bio error compat
Sponsored-by: https://despairlabs.com/sponsor/ Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Tony Hutter <hutter2@llnl.gov> Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #16479
This commit is contained in:
committed by
Brian Behlendorf
parent
3008e691a2
commit
f4c4df1638
@@ -99,13 +99,17 @@ static unsigned int zvol_num_taskqs = 0;
|
||||
#ifdef HAVE_BLK_MQ
|
||||
#define END_IO(zv, bio, rq, error) do { \
|
||||
if (bio) { \
|
||||
BIO_END_IO(bio, error); \
|
||||
bio->bi_status = errno_to_bi_status(-error); \
|
||||
bio_endio(bio); \
|
||||
} else { \
|
||||
blk_mq_end_request(rq, errno_to_bi_status(error)); \
|
||||
} \
|
||||
} while (0)
|
||||
#else
|
||||
#define END_IO(zv, bio, rq, error) BIO_END_IO(bio, error)
|
||||
#define END_IO(zv, bio, rq, error) do { \
|
||||
bio->bi_status = errno_to_bi_status(-error); \
|
||||
bio_endio(bio); \
|
||||
} while (0)
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BLK_MQ
|
||||
|
||||
Reference in New Issue
Block a user