Roland Dreier 2f76e82947 [IB] umad: avoid potential deadlock when unregistering MAD agents
ib_unregister_mad_agent() completes all pending MAD sends and waits
for the agent's send_handler routine to return.  umad's send_handler()
calls queue_packet(), which does down_read() on the port mutex to look
up the agent ID.  This means that the port mutex cannot be held for
writing while calling ib_unregister_mad_agent(), or else it will
deadlock.  This patch fixes all the calls to ib_unregister_mad_agent()
in the umad module to avoid this deadlock.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2005-11-10 10:22:50 -08:00
..
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:10 -08:00
2005-10-31 13:37:12 +11:00
2005-10-31 09:20:54 -08:00
2005-10-30 17:37:32 -08:00
2005-11-02 15:20:55 +11:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:32 -08:00
2005-11-02 18:15:43 +11:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:32 -08:00
2005-10-30 17:37:32 -08:00