]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] Fix hang with split requests
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 20 Sep 2008 00:31:50 +0000 (00:31 +0000)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Tue, 23 Sep 2008 19:29:01 +0000 (12:29 -0700)
commit041571d14520ab7c26af355f935cbb56c51141b2
tree93a373ec24d3a290533bbcce1e7d038a6fb81179
parent9f8cf6ab60201d5456abe8228e67fb4a4b4a6182
[SCSI] Fix hang with split requests

Sometimes, particularly for USB devices with the last sector bug,
requests get completed in chunks.  There's a bug in this in that if
one of the chunks gets an error, we complete that chunk with an error
but never move on to the remaining ones, leading to the request
hanging (because it's not fully completed).

Fix this by completing all remaining chunks if an error is encountered.

Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/scsi_lib.c