]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: clean up mesh sta allocation warning
authorThomas Pedersen <thomas@cozybit.com>
Wed, 23 Jan 2013 20:18:12 +0000 (12:18 -0800)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 24 Jan 2013 15:03:34 +0000 (16:03 +0100)
commit53dc78d6d7cfe660d298aef4f4156769db48f4a4
treea8bb05498d62558513074cd6ded9975f2f2a5043
parentbaed10515b53ec9a7902d7be42a3080d8e30c701
mac80211: clean up mesh sta allocation warning

This refactoring fixes a "scheduling while atomic" warning
when allocating a mesh station entry while holding the RCU
read lock. Fix this by creating a new function
mesh_sta_info_get(), which correctly handles the locking
and returns under RCU.

Also move some unnecessarily #ifdefed mesh station init
code from sta_info_alloc() to __mesh_sta_info_alloc().

Signed-off-by: Thomas Pedersen <thomas@cozybit.com>
[change code flow to make sparse happy]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/mesh_plink.c
net/mac80211/sta_info.c