From: Michael S. Tsirkin Date: Wed, 29 Nov 2006 23:33:10 +0000 (-0800) Subject: IB/ucm: Fix deadlock in cleanup X-Git-Tag: v2.6.20-rc1~34^2~40^2~471^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f469b2626f48829c06e40ac799c1edf62b12048e;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed