Skip to content
Commit e458824f authored by Tejun Heo's avatar Tejun Heo Committed by Jens Axboe
Browse files

scsi: fix resid_len mis-conversion in scsi_end_request()

Commit c3a4d78c

 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: default avatarTejun Heo <tj@kernel.org>
Spotted-by: default avatarBoaz Harrosh <bharrosh@panasas.com>
Cc: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
parent 0b0a47f5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment