summaryrefslogtreecommitdiffstats
path: root/block/mq-deadline.c
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-02-02 15:42:39 -0800
committerJens Axboe <axboe@fb.com>2017-02-02 16:57:56 -0700
commit0cacba6cf8252438f8166bd3fa1c3370dd28a769 (patch)
treec2b1dc91a0dadcc07be4e2fded65622d176c2720 /block/mq-deadline.c
parente17354961bb50931ec7b33f59c0713dcf98ac7d2 (diff)
downloadlinux-0-day-0cacba6cf8252438f8166bd3fa1c3370dd28a769.tar.gz
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/mq-deadline.c')
-rw-r--r--block/mq-deadline.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/block/mq-deadline.c b/block/mq-deadline.c
index 4958353..8f91f21 100644
--- a/block/mq-deadline.c
+++ b/block/mq-deadline.c
@@ -395,9 +395,6 @@ static void dd_insert_request(struct blk_mq_hw_ctx *hctx, struct request *rq,
blk_mq_sched_request_inserted(rq);
- if (blk_mq_sched_bypass_insert(hctx, rq))
- return;
-
if (at_head || blk_rq_is_passthrough(rq)) {
if (at_head)
list_add(&rq->queuelist, &dd->dispatch);