summaryrefslogtreecommitdiff
path: root/block/blk-flush.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2017-11-02 18:24:33 +0300
committerJens Axboe <axboe@kernel.dk>2017-11-04 21:38:40 +0300
commit9c71c83c857e7a84a5be5a56ea88da7098f51db8 (patch)
tree9219f2571abc4b117dcf3747bae1a6ea25129050 /block/blk-flush.c
parent6d6f167ce74158903e7fc20dfbecf89c71aa1c00 (diff)
downloadlinux-9c71c83c857e7a84a5be5a56ea88da7098f51db8.tar.xz
blk-flush: don't run queue for requests bypassing flush
blk_insert_flush() should only insert request since run queue always follows it. In case of bypassing flush, we don't need to run queue because every blk_insert_flush() follows one run queue. Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-flush.c')
-rw-r--r--block/blk-flush.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-flush.c b/block/blk-flush.c
index 4938bec8cfef..81bd1a843043 100644
--- a/block/blk-flush.c
+++ b/block/blk-flush.c
@@ -463,7 +463,7 @@ void blk_insert_flush(struct request *rq)
if ((policy & REQ_FSEQ_DATA) &&
!(policy & (REQ_FSEQ_PREFLUSH | REQ_FSEQ_POSTFLUSH))) {
if (q->mq_ops)
- blk_mq_sched_insert_request(rq, false, true, false, false);
+ blk_mq_sched_insert_request(rq, false, false, false, false);
else
list_add_tail(&rq->queuelist, &q->queue_head);
return;