summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatias Bjørling <mb@silverwolf.dk>2012-07-13 10:01:09 -0600
committerJens Axboe <axboe@kernel.dk>2012-10-04 11:04:35 +0200
commit2af6caf2285663ddf73104584f2f8068b7c3e0fa (patch)
treebb3f3cd355e02f561ecb3a5ac396a22a295c7440
parent69bcde259689539c8b35bc3a06c53a16ce6a1cf1 (diff)
multiqueue: change ctx variable to per-cpu variable when passing ctx to driver.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
-rw-r--r--block/blk-mq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-mq.c b/block/blk-mq.c
index 22949ab087ec..80cef0632079 100644
--- a/block/blk-mq.c
+++ b/block/blk-mq.c
@@ -635,7 +635,7 @@ struct request_queue *blk_mq_init_queue(struct blk_mq_reg *reg,
for_each_possible_cpu(i) {
struct blk_mq_ctx *__ctx = per_cpu_ptr(ctx, i);
- hctx = q->mq_ops->map_queue(q, ctx);
+ hctx = q->mq_ops->map_queue(q, __ctx);
hctx->nr_ctx++;
memset(__ctx, 0, sizeof(*__ctx));