]> git.karo-electronics.de Git - karo-tx-linux.git/commit
[PATCH] IB/ucm: Fix deadlock in cleanup
authorMichael S Tsirkin <mst@mellanox.co.il>
Mon, 4 Dec 2006 16:44:48 +0000 (18:44 +0200)
committerChris Wright <chrisw@sous-sol.org>
Mon, 11 Dec 2006 19:32:39 +0000 (11:32 -0800)
commit68057dcdf944f5801af3692c63e1f193e0f1a818
treeff479bfdda0e0d7a900aa0b07c8fd1b0de0a3e3c
parentbed569c712c48235f355b963d41482ecda314e4f
[PATCH] IB/ucm: Fix deadlock in cleanup

ib_ucm_cleanup_events() holds file_mutex while calling ib_destroy_cm_id().
This can deadlock since ib_destroy_cm_id() flushes event handlers, and
ib_ucm_event_handler() needs file_mutex, too.  Therefore, drop the
file_mutex during the call to ib_destroy_cm_id().

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
drivers/infiniband/core/ucm.c