From fb08b322548e5c337a7b0c5417311454c3f8b2b8 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Fri, 12 Apr 2013 20:18:20 -0700 Subject: [PATCH] 3.0-stable patches added patches: target-fix-incorrect-fallthrough-of-alua-standby-offline-transition-cdbs.patch --- queue-3.0/series | 1 + ...alua-standby-offline-transition-cdbs.patch | 50 +++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 queue-3.0/target-fix-incorrect-fallthrough-of-alua-standby-offline-transition-cdbs.patch diff --git a/queue-3.0/series b/queue-3.0/series index d2175735d2b..b605f40367f 100644 --- a/queue-3.0/series +++ b/queue-3.0/series @@ -3,3 +3,4 @@ x86-32-mm-rip-out-x86_32-numa-remapping-code.patch asoc-wm8903-fix-the-bypass-to-hp-lineout-when-no-dac-or-adc-is-running.patch tracing-fix-double-free-when-function-profile-init-failed.patch pm-reboot-call-syscore_shutdown-after-disable_nonboot_cpus.patch +target-fix-incorrect-fallthrough-of-alua-standby-offline-transition-cdbs.patch diff --git a/queue-3.0/target-fix-incorrect-fallthrough-of-alua-standby-offline-transition-cdbs.patch b/queue-3.0/target-fix-incorrect-fallthrough-of-alua-standby-offline-transition-cdbs.patch new file mode 100644 index 00000000000..9e12527bb1e --- /dev/null +++ b/queue-3.0/target-fix-incorrect-fallthrough-of-alua-standby-offline-transition-cdbs.patch @@ -0,0 +1,50 @@ +From 30f359a6f9da65a66de8cadf959f0f4a0d498bba Mon Sep 17 00:00:00 2001 +From: Nicholas Bellinger +Date: Wed, 10 Apr 2013 15:00:27 -0700 +Subject: target: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs + +From: Nicholas Bellinger + +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 +Cc: Hannes Reinecke +Signed-off-by: Greg Kroah-Hartman + +--- + drivers/target/target_core_alua.c | 3 +++ + 1 file changed, 3 insertions(+) + +--- a/drivers/target/target_core_alua.c ++++ b/drivers/target/target_core_alua.c +@@ -351,6 +351,7 @@ static inline int core_alua_state_standb + case REPORT_LUNS: + case RECEIVE_DIAGNOSTIC: + case SEND_DIAGNOSTIC: ++ return 0; + case MAINTENANCE_IN: + switch (cdb[1]) { + case MI_REPORT_TARGET_PGS: +@@ -393,6 +394,7 @@ static inline int core_alua_state_unavai + switch (cdb[0]) { + case INQUIRY: + case REPORT_LUNS: ++ return 0; + case MAINTENANCE_IN: + switch (cdb[1]) { + case MI_REPORT_TARGET_PGS: +@@ -433,6 +435,7 @@ static inline int core_alua_state_transi + switch (cdb[0]) { + case INQUIRY: + case REPORT_LUNS: ++ return 0; + case MAINTENANCE_IN: + switch (cdb[1]) { + case MI_REPORT_TARGET_PGS: -- 2.47.3