[SCSI] scsi_dh_alua: Enable STPG for unavailable ports
authorBart Van Assche <bvanassche@acm.org>
Fri, 24 Aug 2012 09:08:41 +0000 (09:08 +0000)
committerJames Bottomley <JBottomley@Parallels.com>
Mon, 24 Sep 2012 08:21:56 +0000 (12:21 +0400)
commite47f8976d8e573928824a06748f7bc82c58d747f
tree628ab700ecd8384a21cc3bf6e34480cad2c653f2
parentbc3f02a795d3b4faa99d37390174be2a75d091bd
[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>
drivers/scsi/device_handler/scsi_dh_alua.c