aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2012-08-24 09:08:41 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-10-07 08:27:27 -0700
commitd71df5421f8566acd99f20e36458bd11f92b86e7 (patch)
tree836e0f266b0d21f8ade4abdcd00c011cec8f7056 /drivers/scsi
parent8fda07927aa82e4d1636752bfae8ef57b0324ddc (diff)
downloadkernel_samsung_aries-d71df5421f8566acd99f20e36458bd11f92b86e7.zip
kernel_samsung_aries-d71df5421f8566acd99f20e36458bd11f92b86e7.tar.gz
kernel_samsung_aries-d71df5421f8566acd99f20e36458bd11f92b86e7.tar.bz2
SCSI: scsi_dh_alua: Enable STPG for unavailable ports
commit e47f8976d8e573928824a06748f7bc82c58d747f upstream. 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> Signed-off-by: James Bottomley <JBottomley@Parallels.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/device_handler/scsi_dh_alua.c3
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 6fec9fe..5391e6a 100644
--- a/drivers/scsi/device_handler/scsi_dh_alua.c
+++ b/drivers/scsi/device_handler/scsi_dh_alua.c
@@ -619,8 +619,7 @@ static int alua_rtpg(struct scsi_device *sdev, struct alua_dh_data *h)
h->state = TPGS_STATE_STANDBY;
break;
case TPGS_STATE_OFFLINE:
- case TPGS_STATE_UNAVAILABLE:
- /* Path unusable for unavailable/offline */
+ /* Path unusable */
err = SCSI_DH_DEV_OFFLINED;
break;
default: