]> www.infradead.org Git - users/hch/misc.git/commit
block: remove BLK_MQ_F_NO_SCHED block-no-sched
authorChristoph Hellwig <hch@lst.de>
Mon, 23 Dec 2024 07:50:40 +0000 (07:50 +0000)
committerChristoph Hellwig <hch@lst.de>
Mon, 23 Dec 2024 07:59:55 +0000 (07:59 +0000)
commit9dc072f436dfac3f6a22c72135b455f2e067e7c1
treeb50d1a7b3d68b1a73387821f473d5be73c398fe3
parent0b597f8f3eba597e784bde574e262fbd9efc96f4
block: remove BLK_MQ_F_NO_SCHED

The only queues that really can't support a scheduler are those that
do not have a gendisk associated with them, and thus can't be used for
non-passthrough commands.  In addition to those null_blk can optionally
set the flag, which is a bad odd.  Replace the null_blk usage with
BLK_MQ_F_NO_SCHED_BY_DEFAULT to keep the expected semantics and then
remove BLK_MQ_F_NO_SCHED as the non-disk queues never call into
elevator_init_mq or blk_register_queue which adds the sysfs attributes.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block/blk-mq-debugfs.c
block/bsg-lib.c
block/elevator.c
drivers/block/null_blk/main.c
drivers/nvme/host/apple.c
drivers/nvme/host/core.c
drivers/ufs/core/ufshcd.c
include/linux/blk-mq.h