summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_base.c
diff options
context:
space:
mode:
authornagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com>2012-03-20 07:39:26 +0100
committerJames Bottomley <JBottomley@Parallels.com>2012-04-23 20:27:44 +0200
commit39af7a98946a73f2e4bfb35cfbca2114366d0c82 (patch)
treeed44b96ad6eea644f88f6838ee974edfa59f6ebf /drivers/scsi/mpt2sas/mpt2sas_base.c
parent[SCSI] mpt2sas: Set the phy identifier of the end device to the phy number of... (diff)
downloadlinux-39af7a98946a73f2e4bfb35cfbca2114366d0c82.tar.xz
linux-39af7a98946a73f2e4bfb35cfbca2114366d0c82.zip
[SCSI] mpt2sas: Fix for hard drive going OFFLINE when hard reset issued and simultaneously another hard drive is hot unplugged
Following the host reset, the firmware discovery is reassigning another hard drive in the topology to the same device handle as that device is getting hot removed. Until the driver device removal routine is called, there will be two hard drive with the matching device handle in the internal device link list. In the device removal routine, a separate function which moves the device from BLOCKED into OFFLINE state. Since this routine is passed with the device handle passed as input parameter, the routine will be traversing the internal device link list searching for matching device handle. This results in two devices with matching device handle, therefore both devices goes OFFLINE. To fix this issue,the input parameter is changed from device handle to SAS address, therefore only the device that is hot unplugged will be placed in OFFLINE state. Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com> Cc: stable@vger.kernel.org Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_base.c')
0 files changed, 0 insertions, 0 deletions