target: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 10 Apr 2013 22:00:27 +0000 (15:00 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 11 Apr 2013 08:48:49 +0000 (01:48 -0700)
commit30f359a6f9da65a66de8cadf959f0f4a0d498bba
tree81448c522e247fd05b48619730533a47812ddf97
parent055f648c49d948de9452b0f1758869bbbd0097b8
target: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs

This patch fixes a bug where a handful of informational / control CDBs
that should be allowed during ALUA access state Standby/Offline/Transition
where incorrectly returning CHECK_CONDITION + ASCQ_04H_ALUA_TG_PT_*.

This includes INQUIRY + REPORT_LUNS, which would end up preventing LUN
registration when LUN scanning occured during these ALUA access states.

Cc: Hannes Reinecke <hare@suse.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_alua.c