]> www.infradead.org Git - users/hch/block.git/commit
block: split elevator_switch elevator-cleanups
authorChristoph Hellwig <hch@lst.de>
Tue, 25 Oct 2022 18:49:39 +0000 (11:49 -0700)
committerChristoph Hellwig <hch@lst.de>
Tue, 25 Oct 2022 19:11:51 +0000 (12:11 -0700)
commitb00bd6e4bed5624097dd9e5a08bbd5bf66c318c9
tree182f3cc9781a598bda148d2324c7ddd750f62c3f
parenta12b1db5023d847e43c9cd5977a85c47c6b59187
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>
block/blk-mq-sched.c
block/blk-mq.c
block/blk.h
block/elevator.c