]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.kernel.org/revert-scsi-qla2xxx-return-a-failed-status-when-abort-mailbox-command-fails.patch
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.kernel.org / revert-scsi-qla2xxx-return-a-failed-status-when-abort-mailbox-command-fails.patch
CommitLineData
2cb7cef9
BS
1From 5bff55db3dc4d659f46b4d2fce2f61c1964c2762 Mon Sep 17 00:00:00 2001
2From: Michael Reed <mdr@sgi.com>
3Date: Fri, 24 Oct 2008 15:13:47 -0700
4Subject: revert - SCSI: qla2xxx: Return a FAILED status when abort mailbox-command fails.
5
6-------------------
7This is a revert of this patch that is included in 2.6.27.7
8as a further qla2xxx driver update in the series conflicts with this
9 - gregkh
10-------------------
11
12From: Michael Reed <mdr@sgi.com>
13
14commit 5bff55db3dc4d659f46b4d2fce2f61c1964c2762 upstream.
15
16Mike Reed noted
17(https://bugzilla.novell.com/show_bug.cgi?id=421330) that the
18driver was incorrectly returning a SUCCESS status if the driver's
19request to the firmware to abort a command failed. By doing so,
20the mid-layer believed, incorrectly, that the command has
21completed and has been returned (ultimately clearing
22scsi_cmnd.request_buffer) yet the driver still has the command.
23What should correctly happen is a mid-layer escalation
24(device-reset, etc.) of recovery during which the driver will
25eventually return the outstanding commands to the mid-layer.
26
27Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com>
28Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
29Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
30
31---
32
33---
34 drivers/scsi/qla2xxx/qla_os.c | 1 -
35 1 file changed, 1 deletion(-)
36
37--- a/drivers/scsi/qla2xxx/qla_os.c
38+++ b/drivers/scsi/qla2xxx/qla_os.c
39@@ -730,7 +730,6 @@ qla2xxx_eh_abort(struct scsi_cmnd *cmd)
40 if (ha->isp_ops->abort_command(ha, sp)) {
41 DEBUG2(printk("%s(%ld): abort_command "
42 "mbx failed.\n", __func__, ha->host_no));
43- ret = FAILED;
44 } else {
45 DEBUG3(printk("%s(%ld): abort_command "
46 "mbx success.\n", __func__, ha->host_no));