[SCSI] ibmvscsi: Fix module load hang

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git-commits-head@...>
Date: Friday, July 3, 2009 - 5:59 pm

Gitweb:     http://git.kernel.org/linus/e08afeb7e69f45e4ab9fbb8530fe433484b96606
Commit:     e08afeb7e69f45e4ab9fbb8530fe433484b96606
Parent:     28d0325ce6e0a52f53d8af687e6427fee59004d3
Author:     Brian King <brking@linux.vnet.ibm.com>
AuthorDate: Tue Jun 23 17:14:01 2009 -0500
Committer:  James Bottomley <James.Bottomley@HansenPartnership.com>
CommitDate: Thu Jun 25 11:06:41 2009 -0500

    [SCSI] ibmvscsi: Fix module load hang
    
    Fixes a regression seen in the ibmvscsi driver when using the VSCSI
    server in SLES 9 and SLES 10. The VSCSI server in these releases
    has a bug in it in which it does not send responses to unknown MADs.
    Check the OS Type field in the adapter info response and do not send
    these unsupported commands when talking to an older server.
    
    Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
    Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
---
 drivers/scsi/ibmvscsi/ibmvscsi.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/ibmvscsi/ibmvscsi.c b/drivers/scsi/ibmvscsi/ibmvscsi.c
index 869a11b..9928704 100644
--- a/drivers/scsi/ibmvscsi/ibmvscsi.c
+++ b/drivers/scsi/ibmvscsi/ibmvscsi.c
@@ -1095,9 +1095,14 @@ static void adapter_info_rsp(struct srp_event_struct *evt_struct)
 				MAX_INDIRECT_BUFS);
 			hostdata->host->sg_tablesize = MAX_INDIRECT_BUFS;
 		}
+
+		if (hostdata->madapter_info.os_type == 3) {
+			enable_fast_fail(hostdata);
+			return;
+		}
 	}
 
-	enable_fast_fail(hostdata);
+	send_srp_login(hostdata);
 }
 
 /**
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[SCSI] ibmvscsi: Fix module load hang, Linux Kernel Mailing List..., (Fri Jul 3, 5:59 pm)