commit | 3b85875a252dbbd95c2e04d73639719a0a79634e | [log] [tgz] |
---|---|---|
author | Johannes Berg <johannes@sipsolutions.net> | Thu Mar 12 09:55:09 2009 +0100 |
committer | John W. Linville <linville@tuxdriver.com> | Fri Mar 27 20:12:56 2009 -0400 |
tree | 573142df787d9ccd52944695478546f543489504 | |
parent | 8f655dde240293f3b82313cae91c64ffd7b64c50 [diff] |
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 <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>