Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1538852

[PATCH 4/7] blk-flush: run the queue when inserting blk-mq flush

From Jens Axboe <axboe@fb.com>
Newsgroups linux.kernel
Subject [PATCH 4/7] blk-flush: run the queue when inserting blk-mq flush
Date 2016-12-08 21:20 +0100
Message-ID <sMdkB-29H-17@gated-at.bofh.it> (permalink)
References <sMdkB-29H-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---
 block/blk-flush.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/blk-flush.c b/block/blk-flush.c
index 1bdbb3d3e5f5..27a42dab5a36 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;
-- 
2.7.4

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCHSET/RFC v2] blk-mq scheduling framework Jens Axboe <axboe@fb.com> - 2016-12-08 21:20 +0100
  [PATCH 4/7] blk-flush: run the queue when inserting blk-mq flush Jens Axboe <axboe@fb.com> - 2016-12-08 21:20 +0100
    Re: [PATCH 4/7] blk-flush: run the queue when inserting blk-mq flush Hannes Reinecke <hare@suse.de> - 2016-12-09 07:50 +0100
  [PATCH 3/7] elevator: make the rqhash helpers exported Jens Axboe <axboe@fb.com> - 2016-12-08 21:20 +0100
    Re: [PATCH 3/7] elevator: make the rqhash helpers exported Hannes Reinecke <hare@suse.de> - 2016-12-09 07:50 +0100
  [PATCH 6/7] mq-deadline: add blk-mq adaptation of the deadline IO scheduler Jens Axboe <axboe@fb.com> - 2016-12-08 21:20 +0100
  [PATCH 7/7] blk-mq-sched: allow setting of default IO scheduler Jens Axboe <axboe@fb.com> - 2016-12-08 21:20 +0100

csiph-web