]> www.infradead.org Git - users/hch/misc.git/commit
block: better split mq vs non-mq code in add_disk_fwnode
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Dec 2024 07:56:44 +0000 (07:56 +0000)
committerChristoph Hellwig <hch@lst.de>
Mon, 23 Dec 2024 07:57:34 +0000 (07:57 +0000)
commit0b597f8f3eba597e784bde574e262fbd9efc96f4
tree7ceaf4a77ab8ce31c07ccdb9c6fd2b1f44fadbf1
parent736a8772092fa8e3a87bf8768e47d6bc1fcbc149
block: better split mq vs non-mq code in add_disk_fwnode

Add a big conditional for blk-mq vs not mq at the beginning of
add_disk_fwnode so that elevator_init_mq is only called for blk-mq disks,
and add checks that the right methods or set or not set based on the
queue type.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/genhd.c