block: set up rq->rq_disk properly for flush requests
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Fri, 9 Jul 2010 00:38:25 +0000 (09:38 +0900)
committerJens Axboe <jaxboe@fusionio.com>
Sat, 7 Aug 2010 16:52:41 +0000 (18:52 +0200)
commit16f2319fd67b169c0b34391d3fa0870fff129891
tree986105ef1ea459ad54a28cd19a1585a7e23e850f
parent28e18d0188b9e3ab82ebd09d9b1d1c7f8d1822aa
block: set up rq->rq_disk properly for flush requests

q->bar_rq.rq_disk is NULL. Use the rq_disk of the original request
instead.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
block/blk-barrier.c