All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shaohua Li <shli@kernel.org>
To: linux-kernel@vger.kernel.org
Cc: axboe@kernel.dk
Subject: [patch]blk-mq: add REQ_SYNC early
Date: Wed, 19 Feb 2014 20:20:21 +0800	[thread overview]
Message-ID: <20140219122021.GA17818@kernel.org> (raw)


Add REQ_SYNC early, so rq_dispatched[] in blk_mq_rq_ctx_init is set correctly.

Signed-off-by: Shaohua Li<shli@fusionio.com>
---
 block/blk-mq.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux/block/blk-mq.c
===================================================================
--- linux.orig/block/blk-mq.c	2014-02-19 17:10:02.000000000 +0800
+++ linux/block/blk-mq.c	2014-02-19 18:51:25.082774359 +0800
@@ -926,6 +926,8 @@ static void blk_mq_make_request(struct r
 	ctx = blk_mq_get_ctx(q);
 	hctx = q->mq_ops->map_queue(q, ctx->cpu);
 
+	if (is_sync)
+		rw |= REQ_SYNC;
 	trace_block_getrq(q, bio, rw);
 	rq = __blk_mq_alloc_request(hctx, GFP_ATOMIC, false);
 	if (likely(rq))

                 reply	other threads:[~2014-02-19 12:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140219122021.GA17818@kernel.org \
    --to=shli@kernel.org \
    --cc=axboe@kernel.dk \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.