From: FUJITA Tomonori Date: Mon, 25 Aug 2008 18:36:08 +0000 (+0200) Subject: bio: fix __bio_copy_iov() handling of bio->bv_len X-Git-Tag: v2.6.27-rc5~19^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aefcc28a3a63ac33a298777aa50ba43641c75241;p=pandora-kernel.git 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 Cc: stable@kernel.org Signed-off-by: Jens Axboe --- Reading git-diff-tree failed