From: Tejun Heo Date: Tue, 12 May 2009 06:49:32 +0000 (+0200) Subject: scsi: fix resid_len mis-conversion in scsi_end_request() X-Git-Tag: v2.6.31-rc1~389^2~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e458824f9d32e9bf7700d1eb0d201749af48eee0;p=pandora-kernel.git scsi: fix resid_len mis-conversion in scsi_end_request() Commit c3a4d78c580de4edc9ef0f7c59812fb02ceb037f introduced rq->data_len and converted residual count users to it. While converting, it mistakenly converted scsi_end_request() to finish requests with residual count when it wants to do is fully complete the request. Fix it by using blk_end_request_all() instead. This bug was spotted by Boaz Harrosh. Signed-off-by: Tejun Heo Spotted-by: Boaz Harrosh Cc: FUJITA Tomonori Cc: James Bottomley Signed-off-by: Jens Axboe --- Reading git-diff-tree failed