blk-mq: queue_for_each_ctx() typo multiqueue
authorJens Axboe <axboe@kernel.dk>
Tue, 12 Jun 2012 13:41:34 +0000 (15:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Tue, 12 Jun 2012 13:41:34 +0000 (15:41 +0200)
0 -> i

Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/blk-mq.h

index a6f6ae4b0782f70ab62af5e0259677217f6a9424..c4dbe809ca7b47dec9c38bdec62397df7d112843 100644 (file)
@@ -42,7 +42,7 @@ static inline struct blk_queue_ctx *blk_get_ctx(struct request_queue *q, int nr)
 }
 
 #define queue_for_each_ctx(q, ctx, i)                                  \
-       for (i = 0, ctx = &(q)->queue_ctx[0];                           \
+       for (i = 0, ctx = &(q)->queue_ctx[i];                           \
                i < (q)->nr_queues; i++, ctx++)                         \
 
 #define blk_ctx_sum(q, sum)                                            \