scsi: core: Return BLK_STS_AGAIN for ALUA transitioning
[sfrench/cifs-2.6.git] / drivers / scsi / scsi_lib.c
index 7691196f288cdd088043b6c45b98da6afb8802e9..855e48c7514f462169c164b41b0660034e7516fe 100644 (file)
@@ -766,6 +766,9 @@ static void scsi_io_completion_action(struct scsi_cmnd *cmd, int result)
                                case 0x24: /* depopulation in progress */
                                        action = ACTION_DELAYED_RETRY;
                                        break;
+                               case 0x0a: /* ALUA state transition */
+                                       blk_stat = BLK_STS_AGAIN;
+                                       fallthrough;
                                default:
                                        action = ACTION_FAIL;
                                        break;