[SCSI] Ensure discard failure gets treated as a target problem
authorMartin K. Petersen <martin.petersen@oracle.com>
Mon, 13 Feb 2012 20:38:22 +0000 (15:38 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 19 Feb 2012 15:38:01 +0000 (09:38 -0600)
commit66a651aa7a48b7c6181aff556937454c87bb9feb
treef4a737d1d6bdf2d18bf159c31a30d3705c59f66b
parentc834b1c4ec8ccc9c2d814bd78264b509708fe6dd
[SCSI] Ensure discard failure gets treated as a target problem

The error reported up the stack for a discard failure did not clearly
indicate that the command was processed and subsequently failed by the
target device.

Return -EREMOTEIO so multipathing does not classify this condition as a
path failure.

Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Acked-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_lib.c