]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
3.0-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2013 03:18:20 +0000 (20:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 13 Apr 2013 03:18:20 +0000 (20:18 -0700)
added patches:
target-fix-incorrect-fallthrough-of-alua-standby-offline-transition-cdbs.patch

queue-3.0/series
queue-3.0/target-fix-incorrect-fallthrough-of-alua-standby-offline-transition-cdbs.patch [new file with mode: 0644]

index d2175735d2b9f0cb13227212f6ad117c4a7b0c74..b605f40367facbd3a9b47ff7304180ba1cba736a 100644 (file)
@@ -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 (file)
index 0000000..9e12527
--- /dev/null
@@ -0,0 +1,50 @@
+From 30f359a6f9da65a66de8cadf959f0f4a0d498bba Mon Sep 17 00:00:00 2001
+From: Nicholas Bellinger <nab@linux-iscsi.org>
+Date: Wed, 10 Apr 2013 15:00:27 -0700
+Subject: target: Fix incorrect fallthrough of ALUA Standby/Offline/Transition CDBs
+
+From: Nicholas Bellinger <nab@linux-iscsi.org>
+
+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 |    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: