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)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 25 Apr 2013 19:25:37 +0000 (20:25 +0100)
commit2ee3a5e3ebce82a5ad4b36ac654be9347b7013ac
treea19f504b554672fd61721e05ef17e733e8632c87
parentd801775a8e97920ab0399c987e3b128ad88f8a9d
target: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs

commit 30f359a6f9da65a66de8cadf959f0f4a0d498bba upstream.

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>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/target/target_core_alua.c