mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
[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>
This commit is contained in:
parent
28d0325ce6
commit
e08afeb7e6
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue