mac80211: optimise synchronize_net() for sta_info_flush
authorJohannes Berg <johannes.berg@intel.com>
Wed, 4 Dec 2013 22:12:31 +0000 (23:12 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 16 Dec 2013 10:29:47 +0000 (11:29 +0100)
commitd778207b06ac1becd012eb689dafdf85feebb179
treea6b248949b392e66908cc98aedb2b5b9defc96a1
parentc87820784454bbf7fc63a9e7d9c36762a46f393c
mac80211: optimise synchronize_net() for sta_info_flush

There's no reason to have one synchronize_net() for each
removed station, refactor the code slightly to have just
a single synchronize_net() for all stations.

Note that this is currently useless as hostapd removes
stations one by one and this coalescing never happens.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/sta_info.c
net/mac80211/sta_info.h