diff options
author | Bart Van Assche <bvanassche@acm.org> | 2012-08-24 05:08:41 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-09-24 04:21:56 -0400 |
commit | e47f8976d8e573928824a06748f7bc82c58d747f (patch) | |
tree | 628ab700ecd8384a21cc3bf6e34480cad2c653f2 | |
parent | bc3f02a795d3b4faa99d37390174be2a75d091bd (diff) |
[SCSI] scsi_dh_alua: 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 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: Mike Christie <michaelc@cs.wisc.edu>
Acked-by: Hannes Reinecke <hare@suse.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
-rw-r--r-- | drivers/scsi/device_handler/scsi_dh_alua.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/device_handler/scsi_dh_alua.c b/drivers/scsi/device_handler/scsi_dh_alua.c index 08d80a6d272a..6f4d8e6f32f1 100644 --- a/drivers/scsi/device_handler/scsi_dh_alua.c +++ b/drivers/scsi/device_handler/scsi_dh_alua.c | |||
@@ -641,8 +641,7 @@ static int alua_rtpg(struct scsi_device *sdev, struct alua_dh_data *h) | |||
641 | h->state = TPGS_STATE_STANDBY; | 641 | h->state = TPGS_STATE_STANDBY; |
642 | break; | 642 | break; |
643 | case TPGS_STATE_OFFLINE: | 643 | case TPGS_STATE_OFFLINE: |
644 | case TPGS_STATE_UNAVAILABLE: | 644 | /* Path unusable */ |
645 | /* Path unusable for unavailable/offline */ | ||
646 | err = SCSI_DH_DEV_OFFLINED; | 645 | err = SCSI_DH_DEV_OFFLINED; |
647 | break; | 646 | break; |
648 | default: | 647 | default: |