block: needs to set the residual length of a bidi request
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 9 Jun 2009 03:47:10 +0000 (05:47 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 9 Jun 2009 03:47:10 +0000 (05:47 +0200)
commitdbb66c4be020b01dc2f3d7c609ddb0e09d2c0af7
treeb80ec96749fdc8f26a33496ee4593ddbcc58f6ed
parent172124e220f1854acc99ee394671781b8b5e2120
block: needs to set the residual length of a bidi request

Tejun's "block: set rq->resid_len to blk_rq_bytes() on issue" patch
seems to be incomplete; It doesn't set rq->resid_len to blk_rq_bytes()
for a bidi request (req->next_rq). As a result, all bidi users are
broken.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-core.c