]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit47756030c30e76df9ade33ab2596a00fe053b1be
treea6b248949b392e66908cc98aedb2b5b9defc96a1
parent587bc8a6418ff1e3dee54dd06d77e97b1426ff91
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