]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bio: fix __bio_copy_iov() handling of bio->bv_len
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Wed, 27 Aug 2008 22:25:36 +0000 (22:25 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 8 Sep 2008 11:44:18 +0000 (04:44 -0700)
commitb9db91ffefa1922e9d9fc1c5407b2fcfa13d16bc
tree7eb1a0b449850f401a3e23d2a7ba364e42bc8569
parent752e95e66704fe0b158dde2a01c9aee3babbd832
bio: fix __bio_copy_iov() handling of bio->bv_len

commit aefcc28a3a63ac33a298777aa50ba43641c75241 upstream

The commit c5dec1c3034f1ae3503efbf641ff3b0273b64797 introduced
__bio_copy_iov() to add bounce support to blk_rq_map_user_iov.

__bio_copy_iov() uses bio->bv_len to copy data for READ commands after
the completion but it doesn't work with a request that partially
completed. SCSI always completes a PC request as a whole but seems
some don't.

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/bio.c