]> 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)
commite3a968436d4c6a90c43e29f000e98f26f1447ff3
treea6b248949b392e66908cc98aedb2b5b9defc96a1
parentc2c9538634bf6ed0304ba63e0c07e873343630ec
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