]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
bio: fix __bio_copy_iov() handling of bio->bv_len
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Mon, 25 Aug 2008 18:36:08 +0000 (20:36 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 27 Aug 2008 07:50:19 +0000 (09:50 +0200)
commitaefcc28a3a63ac33a298777aa50ba43641c75241
treed72a23323e80b45da16ea916c9abe03d6a3f6bfd
parent76029ff37f31dad64641489c610d98955217bb68
bio: fix __bio_copy_iov() handling of bio->bv_len

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>
Cc: stable@kernel.org
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fs/bio.c