]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] mpt2sas: Fix for dead lock occurring between host_lock and sas_device_lock
authornagalakshmi.nandigama@lsi.com <nagalakshmi.nandigama@lsi.com>
Wed, 19 Oct 2011 10:07:14 +0000 (15:37 +0530)
committerJames Bottomley <JBottomley@Parallels.com>
Sun, 30 Oct 2011 08:53:45 +0000 (12:53 +0400)
commitf2a8de70335fb07b43ca7fc9f7342afd8cdefb4d
tree3e81bec7fcc23e0f4bb8b795f3f003d0b5f530aa
parent5676984b69020c67c8d0d249af27a2fa5475ec0d
[SCSI] mpt2sas: Fix for dead lock occurring between host_lock and sas_device_lock

Fix for dead lock occurring between host_lock and sas_device_lock.

The deadlock is between two spin locks, between the shost->host_lock
and driver ioc->sas_device_lock.

The fix is to rearrange the code in the  FW/Driver device removal
handshake so the ioc->sas_device_lock is not occurring when the
shost->host_lock is taken.

[jejb: zero initialise sas_address to fix spurious compiler warning]
Signed-off-by: Nagalakshmi Nandigama <nagalakshmi.nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/mpt2sas/mpt2sas_scsih.c