diff options
author | Omar Sandoval <osandov@fb.com> | 2017-02-03 00:42:39 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-02-03 00:57:56 +0100 |
commit | 0cacba6cf8252438f8166bd3fa1c3370dd28a769 (patch) | |
tree | c2b1dc91a0dadcc07be4e2fded65622d176c2720 /block/blk-mq-sched.h | |
parent | zram_drv: update for backing dev info changes (diff) | |
download | linux-0cacba6cf8252438f8166bd3fa1c3370dd28a769.tar.xz linux-0cacba6cf8252438f8166bd3fa1c3370dd28a769.zip |
blk-mq-sched: bypass the scheduler for flushes entirely
There's a weird inconsistency that flushes are mostly hidden from the
scheduler, but it needs to be aware of them in ->insert_requests().
Instead of having every scheduler call blk_mq_sched_bypass_insert(),
let's do it in the common framework.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq-sched.h')
-rw-r--r-- | block/blk-mq-sched.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/block/blk-mq-sched.h b/block/blk-mq-sched.h index 9478aaeb48c5..add5f090a8cd 100644 --- a/block/blk-mq-sched.h +++ b/block/blk-mq-sched.h @@ -15,7 +15,6 @@ struct request *blk_mq_sched_get_request(struct request_queue *q, struct bio *bi void blk_mq_sched_put_request(struct request *rq); void blk_mq_sched_request_inserted(struct request *rq); -bool blk_mq_sched_bypass_insert(struct blk_mq_hw_ctx *hctx, struct request *rq); bool blk_mq_sched_try_merge(struct request_queue *q, struct bio *bio); bool __blk_mq_sched_bio_merge(struct request_queue *q, struct bio *bio); bool blk_mq_sched_try_insert_merge(struct request_queue *q, struct request *rq); |