From: Alan Jenkins Date: Wed, 29 Apr 2009 10:41:24 +0000 (+0100) Subject: mac80211: fix modprobe deadlock by not calling wep_init under rtnl_lock X-Git-Tag: v2.6.30-rc5~39^2~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c4a9a1bce1912ed5681251f0037fd4f2364a3e;p=pandora-kernel.git mac80211: fix modprobe deadlock by not calling wep_init under rtnl_lock - ieee80211_wep_init(), which is called with rtnl_lock held, blocks in request_module() [waiting for modprobe to load a crypto module]. - modprobe blocks in a call to flush_workqueue(), when it closes a TTY [presumably when it exits]. - The workqueue item linkwatch_event() blocks on rtnl_lock. There's no reason for wep_init() to be called with rtnl_lock held, so just move it outside the critical section. Signed-off-by: Alan Jenkins Signed-off-by: John W. Linville --- Reading git-diff-tree failed