]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: sd: Return SUCCESS in sd_eh_action() after device offline
authorHannes Reinecke <hare@suse.de>
Thu, 6 Apr 2017 13:36:30 +0000 (15:36 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 6 Apr 2017 17:07:32 +0000 (13:07 -0400)
commit3249065c8f7cd1c4758705f42e0ea862a1d3dcf3
treeec38388d925a27c7e1b824fb1b95f68acb2f3176
parent09c0fca4ebd32f2ea7ef573eaa9dd36f41bc5cbc
scsi: sd: Return SUCCESS in sd_eh_action() after device offline

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 <bblock@linux.vnet.ibm.com>
Signed-off-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/sd.c