]> git.proxmox.com Git - mirror_zfs.git/commit
Linux 6.9 compat: blk_alloc_disk() now takes two args
authorRob Norris <robn@despairlabs.com>
Wed, 27 Mar 2024 00:24:57 +0000 (11:24 +1100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 3 Apr 2024 22:29:39 +0000 (15:29 -0700)
commit6097a7ba8b49c9b263809d2d1092fdca86182bd3
tree081c55684ac0fa841e50fa2de735c06a9785f661
parente3120f73d0481a5e0779e45da83518373d60dcff
Linux 6.9 compat: blk_alloc_disk() now takes two args

There's an extra nullable arg for queue limits. Detect it, and set it to
NULL. Similar change for blk_mq_alloc_disk(), now three args, same
treatment.

Error return now has error encoded in the return, so detect with
IS_ERR() and explicitly NULL our own return.

Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <robn@despairlabs.com>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16027
Closes #16033
config/kernel-make-request-fn.m4
module/os/linux/zfs/zvol_os.c