• James Bottomley's avatar
    [SCSI] Fix hang with split requests · 44ea91c5
    James Bottomley authored
    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: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
    44ea91c5
scsi_lib.c 64.5 KB