HomeFreeBSD

Linux 5.14 compat: blk_alloc_disk()

Description

Linux 5.14 compat: blk_alloc_disk()

In Linux 5.14, blk_alloc_queue is no longer exported, and its usage
has been superseded by blk_alloc_disk, which returns a gendisk struct
from which we can still retrieve the struct request_queue* that is
needed in the one place where it is used. This also replaces the call
to alloc_disk(minors), and minors is now set via struct member
assignment.

Reviewed-by: Tony Nguyen <tony.nguyen@delphix.com>
Reviewed-by: Olaf Faaland <faaland1@llnl.gov>
Reviewed-by: Coleman Kane <ckane@colemankane.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #12362
Closes #12409

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Jul 23 2021, 10:28 PM
Tony Hutter <hutter2@llnl.gov>Committed on Sep 14 2021, 7:40 PM
Parents
rG729eb4866695: zloop: Add a max iterations option, use default run/pass times
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rG2f073cc9c670: Linux 5.14 compat: blk_alloc_disk() (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Sep 14 2021, 7:40 PM