projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a26ebe
)
blk-mq: add REQ_SYNC early
author
Shaohua Li
<shli@kernel.org>
Wed, 19 Feb 2014 12:20:21 +0000
(20:20 +0800)
committer
Jens Axboe
<axboe@fb.com>
Fri, 7 Mar 2014 15:15:28 +0000
(08:15 -0700)
Add REQ_SYNC early, so rq_dispatched[] in blk_mq_rq_ctx_init
is set correctly.
Signed-off-by: Shaohua Li<shli@fusionio.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c
patch
|
blob
|
history
diff --git
a/block/blk-mq.c
b/block/blk-mq.c
index
1b8b50d
..
883f720
100644
(file)
--- a/
block/blk-mq.c
+++ b/
block/blk-mq.c
@@
-860,6
+860,8
@@
static void blk_mq_make_request(struct request_queue *q, struct bio *bio)
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))