blk-mq: initialize req->q in allocation
authorMing Lei <tom.leiming@gmail.com>
Sat, 19 Apr 2014 10:00:19 +0000 (18:00 +0800)
committerJens Axboe <axboe@fb.com>
Mon, 21 Apr 2014 16:38:39 +0000 (10:38 -0600)
commit6a3c8a3ac0e68dcfc2a01f4aa1ca0edd1a1701eb
treeb3735b853db300ba05524362eba756626a411019
parent4ca085009f447abc1c818f8802e908e9afdd77fa
blk-mq: initialize req->q in allocation

The patch basically reverts the patch of(blk-mq:
initialize request on allocation) in Jens's tree(already
in -next), and only initialize req->q in allocation
for two reasons:

- presumed cache hotness on completion
- blk_rq_tagged(rq) depends on reset of req->mq_ctx

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq.c