]> www.infradead.org Git - users/hch/block.git/commit
block: split elevator_switch
authorChristoph Hellwig <hch@lst.de>
Wed, 19 Oct 2022 15:29:42 +0000 (17:29 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 19 Oct 2022 16:08:59 +0000 (18:08 +0200)
commitf979165aba58f3ba429314995f8e38e419d4712c
treee44076eb8d8b7955f461bc3320499227677b9767
parent26289db6eeb61611e54339e32e9a8e3a9e5a96be
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