]> git.baikalelectronics.ru Git - kernel.git/commit
[IB] umad: further ib_unregister_mad_agent() deadlock fixes
authorRoland Dreier <rolandd@cisco.com>
Thu, 10 Nov 2005 18:18:23 +0000 (10:18 -0800)
committerRoland Dreier <rolandd@cisco.com>
Thu, 10 Nov 2005 18:22:51 +0000 (10:22 -0800)
commiteafcbcb21329092d99310e3a64ec9803d6b3fa70
treecf4cb4d1d1dc79326f68511addc1391d7d81e0ce
parent0e4649768d937921b254dada8f05c37850de94a0
[IB] umad: further ib_unregister_mad_agent() deadlock fixes

The previous umad deadlock fix left ib_umad_kill_port() still
vulnerable to deadlocking.  This patch fixes that by downgrading our
lock to a read lock when we might end up trying to reacquire the lock
for reading.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/user_mad.c