summaryrefslogtreecommitdiff
path: root/block/blk.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2022-10-30 11:07:14 +0100
committerJens Axboe <axboe@kernel.dk>2022-11-01 09:12:24 -0600
commit64b36075eb0e50af6f59047b5f698a9f2bb2b4fd (patch)
tree411815f10bee1d8f5ce412a9c0a099b21d93b878 /block/blk.h
parentffb86425ee2cadbe573c483b789aab2dd57aeb7b (diff)
downloadlwn-64b36075eb0e50af6f59047b5f698a9f2bb2b4fd.tar.gz
lwn-64b36075eb0e50af6f59047b5f698a9f2bb2b4fd.zip
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>
Diffstat (limited to 'block/blk.h')
-rw-r--r--block/blk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/block/blk.h b/block/blk.h
index 7f9e089ab1f7..f1398fb96cec 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -278,6 +278,7 @@ bool blk_bio_list_merge(struct request_queue *q, struct list_head *list,
void blk_insert_flush(struct request *rq);
int elevator_switch(struct request_queue *q, struct elevator_type *new_e);
+void elevator_disable(struct request_queue *q);
void elevator_exit(struct request_queue *q);
int elv_register_queue(struct request_queue *q, bool uevent);
void elv_unregister_queue(struct request_queue *q);