]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: allow scan to complete from any context
authorJohannes Berg <johannes.berg@intel.com>
Thu, 26 Aug 2010 11:30:26 +0000 (13:30 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Aug 2010 17:27:06 +0000 (13:27 -0400)
commit3e0ba361451935ead11c24cdc8ca38ee36c77186
tree5dbcabe5807de84f9119ab3654b998fd65ac0a40
parent6e011f54fd39ad4e3a80f2768f66574456a90d84
mac80211: allow scan to complete from any context

The ieee80211_scan_completed() function was a frequent
source of potential deadlocks, since it is called by
drivers but may call back into drivers, so drivers had
to make sure to call it without any locks held, which
frequently lead to more complex code in drivers. Avoid
that problem by allowing the function to be called in
any context, and queueing the actual work it does.
Also update the documentation for it to indicate this.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/net/mac80211.h
net/mac80211/ieee80211_i.h
net/mac80211/scan.c