block: split elevator_switch
authorChristoph Hellwig <hch@lst.de>
Sun, 30 Oct 2022 10:07:14 +0000 (11:07 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Nov 2022 15:12:24 +0000 (09:12 -0600)
commit64b36075eb0e50af6f59047b5f698a9f2bb2b4fd
tree411815f10bee1d8f5ce412a9c0a099b21d93b878
parentffb86425ee2cadbe573c483b789aab2dd57aeb7b
block: split elevator_switch

Split an elevator_disable helper from elevator_switch for the case where
we want to switch to no scheduler at all.  This includes removing the
pointless elevator_switch_mq helper and removing the switch to no
schedule logic from blk_mq_init_sched.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20221030100714.876891-8-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-sched.c
block/blk-mq.c
block/blk.h
block/elevator.c