]> git.openfabrics.org - ~emulex/for-vlad/old/compat-rdma.git/commit
ib_srp: Avoid that module removal can trigger a deadlock
authorBart Van Assche <bvanassche@acm.org>
Fri, 12 Oct 2012 12:03:26 +0000 (14:03 +0200)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 15 Oct 2012 13:26:43 +0000 (15:26 +0200)
commit819cb8299997a33db50368df889a65bba0e779fb
tree42a0117e5326d6335a2e8652325b54a3d0572ddd
parent587dab182558cf2f532c957d88d29a6dd4527d7d
ib_srp: Avoid that module removal can trigger a deadlock

Avoid that scsi_remove_host() is invoked from the context of a work
queue thread on which work has been queued that scsi_remove_host()
might be waiting for. That avoids that module removal of ib_srp
triggers a deadlock on a pre-2.6.36 kernel. This patch has been
tested on RHEL 6.1, RHEL 6.2, RHEL 6.3 and SLES 11 SP2.

Reported-by: Rupert Dance <rsdance@soft-forge.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
patches/0025-ib_srp-Backport-to-older-kernels.patch