kernel-ark/drivers/infiniband/core
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
..
agent.c [IB] kzalloc() conversions 2005-11-02 07:23:14 -08:00
agent.h [PATCH] missing include in infiniband 2005-10-29 10:35:07 -07:00
cache.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
cm_msgs.h
cm.c [IB] kzalloc() conversions 2005-11-02 07:23:14 -08:00
core_priv.h
device.c [IB] kzalloc() conversions 2005-11-02 07:23:14 -08:00
fmr_pool.c
mad_priv.h
mad_rmpp.c
mad_rmpp.h
mad.c [IB] kzalloc() conversions 2005-11-02 07:23:14 -08:00
Makefile
packer.c
sa_query.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
smi.c
smi.h
sysfs.c [IB] kzalloc() conversions 2005-11-02 07:23:14 -08:00
ucm.c [IB] kzalloc() conversions 2005-11-02 07:23:14 -08:00
ud_header.c
user_mad.c [IB] umad: avoid potential deadlock when unregistering MAD agents 2005-11-10 10:22:50 -08:00
uverbs_cmd.c [IB] uverbs: Avoid NULL pointer deref on CQ async event 2005-10-31 07:10:32 -08:00
uverbs_main.c [IB] kzalloc() conversions 2005-11-02 07:23:14 -08:00
uverbs_mem.c
uverbs.h [IB] uverbs: Avoid NULL pointer deref on CQ async event 2005-10-31 07:10:32 -08:00
verbs.c