If sd_eh_action() decides to take the device offline there is
no point in returning FAILED, as taking the device offline
is the ultimate step in SCSI EH anyway.
So further escalation via SCSI EH is not likely to make a
difference and we can as well return SUCCESS.

Cc: Benjamin Block <bbl...@linux.vnet.ibm.com>
Signed-off-by: Hannes Reinecke <h...@suse.com>
---
 drivers/scsi/sd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 656a32d..1969e85 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -1740,7 +1740,7 @@ static int sd_eh_action(struct scsi_cmnd *scmd, int 
eh_disp, bool restart)
                            "Medium access timeout failure. Offlining disk!\n");
                scsi_device_set_state(scmd->device, SDEV_OFFLINE);
 
-               return FAILED;
+               return SUCCESS;
        }
 
        return eh_disp;
-- 
1.8.5.6

Reply via email to