summaryrefslogtreecommitdiffstats
path: root/block/blk-mq-sched.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2017-02-17 19:37:14 +0100
committerJens Axboe <axboe@fb.com>2017-02-17 20:35:47 +0100
commitc7a571b45055dba740156013fef4a7fdbe3262d9 (patch)
treee9dac63bccc709731773c4701a74d1b4619abf49 /block/blk-mq-sched.c
parentblk-mq: have blk_mq_dispatch_rq_list() return if we queued IO or not (diff)
downloadlinux-c7a571b45055dba740156013fef4a7fdbe3262d9.tar.xz
linux-c7a571b45055dba740156013fef4a7fdbe3262d9.zip
blk-mq-sched: don't add flushes to the head of requeue queue
If we are currently out of driver tags, we don't want to add a new flush (without a tag) to the head of the requeue list. We want to add it to the back, behind the others that are potentially also waiting for a tag. Signed-off-by: Jens Axboe <axboe@fb.com> Reviewed-by: Omar Sandoval <osandov@fb.com>
Diffstat (limited to '')
-rw-r--r--block/blk-mq-sched.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c
index 97fe904f0a04..4ee7cb043812 100644
--- a/block/blk-mq-sched.c
+++ b/block/blk-mq-sched.c
@@ -351,7 +351,7 @@ static void blk_mq_sched_insert_flush(struct blk_mq_hw_ctx *hctx,
blk_insert_flush(rq);
blk_mq_run_hw_queue(hctx, true);
} else
- blk_mq_add_to_requeue_list(rq, true, true);
+ blk_mq_add_to_requeue_list(rq, false, true);
}
void blk_mq_sched_insert_request(struct request *rq, bool at_head,