]> www.infradead.org Git - users/jedix/linux-maple.git/commit
block: remove BLK_MQ_F_NO_SCHED
authorChristoph Hellwig <hch@lst.de>
Mon, 6 Jan 2025 08:35:10 +0000 (09:35 +0100)
committerJens Axboe <axboe@kernel.dk>
Mon, 6 Jan 2025 14:37:41 +0000 (07:37 -0700)
commite7602bb4f3a1234df8b75728ac3260bcb8242612
treec392950fcaa885bc35c2e6823f1a7286c3f14096
parent68ed45122249083bf45593ed635474282583352c
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>
Link: https://lore.kernel.org/r/20250106083531.799976-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
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