Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb2c94a3 authored by Bart Van Assche's avatar Bart Van Assche Committed by James Bottomley
Browse files

[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: default avatarBart Van Assche <bvanassche@acm.org>
Reviewed-by: default avatarBabu Moger <babu.moger@netapp.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent efb6c717
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -742,9 +742,9 @@ static int alua_activate(struct scsi_device *sdev,
				stpg = 0;
				stpg = 0;
			break;
			break;
		case TPGS_STATE_STANDBY:
		case TPGS_STATE_STANDBY:
		case TPGS_STATE_UNAVAILABLE:
			stpg = 1;
			stpg = 1;
			break;
			break;
		case TPGS_STATE_UNAVAILABLE:
		case TPGS_STATE_OFFLINE:
		case TPGS_STATE_OFFLINE:
			err = SCSI_DH_IO;
			err = SCSI_DH_IO;
			break;
			break;