From: Johannes Berg Date: Thu, 12 Mar 2009 08:55:09 +0000 (+0100) Subject: nl80211: rework locking X-Git-Tag: v2.6.30-rc1~642^2^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b85875a252dbbd95c2e04d73639719a0a79634e;p=pandora-kernel.git nl80211: rework locking When I added scanning to cfg80211, we got a lock dependency like this: rtnl --> cfg80211_mtx nl80211, on the other hand, has the reverse lock dependency: cfg80211_mtx --> rtnl which clearly is a bad idea. This patch reworks nl80211 to take these two locks in the other order to fix the possible, and easily triggerable, deadlock. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed