* [patch]blk-mq: add REQ_SYNC early
@ 2014-02-19 12:20 Shaohua Li
0 siblings, 0 replies; only message in thread
From: Shaohua Li @ 2014-02-19 12:20 UTC (permalink / raw)
To: linux-kernel; +Cc: axboe
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))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-02-19 12:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-19 12:20 [patch]blk-mq: add REQ_SYNC early Shaohua Li
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.