BUSY and QUEUE_FULL are retryable errors.
Signed-off-by: Oliver Neukum <[email protected]>
---
drivers/scsi/scsi_error.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c
index 195cc75..2f70a07 100644
--- a/drivers/scsi/scsi_error.c
+++ b/drivers/scsi/scsi_error.c
@@ -2227,6 +2227,12 @@ EXPORT_SYMBOL(scsi_build_sense_buffer);
**/
int scsi_translate_errors_to_power_management(int res)
{
+ switch (status_byte(res)) {
+ case BUSY:
+ case QUEUE_FULL:
+ return -EBUSY;
+ }
+
switch (host_byte(res)) {
/* ignore errors due to racing a disconnection */
case DID_BAD_TARGET:
--
1.7.7
--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html