diff options
author | Shlomo Pongratz <[email protected]> | 2012-08-13 14:39:49 +0000 |
---|---|---|
committer | Roland Dreier <[email protected]> | 2012-08-14 15:21:44 -0700 |
commit | fa16ebed31f336e41970f3f0ea9e8279f6be2d27 (patch) | |
tree | 73d9e6edccbb22680fd0a11e42aa13ff5df7c4f7 /drivers/scsi/mpt2sas/mpi | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) |
IB/ipoib: Add missing locking when CM object is deleted
Commit b63b70d87741 ("IPoIB: Use a private hash table for path lookup
in xmit path") introduced a bug where in ipoib_cm_destroy_tx() a CM
object is moved between lists without any supported locking. Under a
stress test, this eventually leads to list corruption and a crash.
Previously when this routine was called, callers were taking the
device priv lock. Currently this function is called from the RCU
callback associated with neighbour deletion. Fix the race by taking
the same lock we used to before.
Signed-off-by: Shlomo Pongratz <[email protected]>
Signed-off-by: Or Gerlitz <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi')
0 files changed, 0 insertions, 0 deletions