summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-12-07 15:53:18 -0700
committerJens Axboe <axboe@fb.com>2016-12-09 09:03:02 -0700
commitc8e52ba5e2d6df5acaaeedda20d74f4ec3adcc82 (patch)
treeddfc1af77b8a22c82e0daab9e0c93b278ca5cc82 /block
parent70b3ea056f3074be6d9256c312b64c0d90a4a683 (diff)
downloadop-kernel-dev-c8e52ba5e2d6df5acaaeedda20d74f4ec3adcc82.zip
op-kernel-dev-c8e52ba5e2d6df5acaaeedda20d74f4ec3adcc82.tar.gz
blk-flush: run the queue when inserting blk-mq flush
Currently we pass in to run the queue async, but don't flag the queue to be run. We don't need to run it async here, but we should run it. So fixup the parameters. Signed-off-by: Jens Axboe <axboe@fb.com> Reviewed-by: Hannes Reinecke <hare@suse.com>
Diffstat (limited to 'block')
-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 1bdbb3d..27a42da 100644
--- a/block/blk-flush.c
+++ b/block/blk-flush.c
@@ -426,7 +426,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_insert_request(rq, false, false, true);
+ blk_mq_insert_request(rq, false, true, false);
} else
list_add_tail(&rq->queuelist, &q->queue_head);
return;
OpenPOWER on IntegriCloud