aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/device_handler
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2012-06-22 04:49:38 -0400
committerJames Bottomley <JBottomley@Parallels.com>2012-07-20 03:58:36 -0400
commitbb2c94a3a6ad37fe7d34f369295bcdf5387e264f (patch)
tree75b8a2798d98cbd8062e39f1197006a32fcd2e14 /drivers/scsi/device_handler
parentefb6c717b764e77cadc20bc9d9ffdf16bc1eedf5 (diff)
[SCSI] scsi_dh_alua: Re-enable STPG for unavailable ports
A quote from SPC-4: "While in the unavailable primary target port asymmetric access state, the device server shall support those of the following commands that it supports while in the active/optimized state: [ ... ] d) SET TARGET PORT GROUPS; [ ... ]". Hence re-enable sending STPG to a target port group that is in the unavailable state. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Reviewed-by: Babu Moger <babu.moger@netapp.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/device_handler')
-rw-r--r--drivers/scsi/device_handler/scsi_dh_alua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c
index 0d573822bf43..08d80a6d272a 100644
--- a/drivers/scsi/device_handler/scsi_dh_alua.c
+++ b/drivers/scsi/device_handler/scsi_dh_alua.c
@@ -742,9 +742,9 @@ static int alua_activate(struct scsi_device *sdev,
742 stpg = 0; 742 stpg = 0;
743 break; 743 break;
744 case TPGS_STATE_STANDBY: 744 case TPGS_STATE_STANDBY:
745 case TPGS_STATE_UNAVAILABLE:
745 stpg = 1; 746 stpg = 1;
746 break; 747 break;
747 case TPGS_STATE_UNAVAILABLE:
748 case TPGS_STATE_OFFLINE: 748 case TPGS_STATE_OFFLINE:
749 err = SCSI_DH_IO; 749 err = SCSI_DH_IO;
750 break; 750 break;