Commit 587600a0 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by James Bottomley

[PATCH] handle NO_SENSE in sd

Original patch from
http://marc.theaimsgroup.com/?l=linux-scsi&m=107428662718579&w=2
reworked to according to James' suggestion to handle NO_SENSE the same
as RECOVERED_ERROR.
Signed-off-by: default avatarJames Bottomley <James.Bottomley@SteelEye.com>
parent ec42dc41
......@@ -763,11 +763,11 @@ static void sd_rw_intr(struct scsi_cmnd * SCpnt)
good_bytes = 0;
break;
case RECOVERED_ERROR:
case RECOVERED_ERROR: /* an error occurred, but it recovered */
case NO_SENSE: /* LLDD got sense data */
/*
* An error occurred, but it recovered. Inform the
* user, but make sure that it's not treated as a
* hard error.
* Inform the user, but make sure that it's not treated
* as a hard error.
*/
print_sense("sd", SCpnt);
SCpnt->result = 0;
......
Markdown is supported
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