]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Apr 2013 04:27:26 +0000 (21:27 -0700)
commiteced4ec1b69c8cc5428ef29b947376bc6d57c8ce
tree33df82d0e27871e3351d970eb97772ec6de7c417
parente0b4cef3446f77889a3699309a9aad5f70d9a939
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.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/target/target_core_alua.c