]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: annotate and fix RCU in mesh code
authorJohannes Berg <johannes.berg@intel.com>
Sat, 14 May 2011 09:56:16 +0000 (11:56 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 May 2011 18:25:29 +0000 (14:25 -0400)
commit47a2b076c754635bd27e421b2ca988528e10cb15
tree596eede64614dcf99967ddea15d301a9fb5e1dd3
parenta119530dad05c4338cfdc44884ff41a953902e3e
mac80211: annotate and fix RCU in mesh code

This adds proper RCU annotations to the mesh path
table code, and fixes a number of bugs in the code
that I found while checking the sparse warnings I
got as a result of the annotations.

Some things like the changes in mesh_path_add() or
mesh_pathtbl_init() only serve to shut up sparse,
but other changes like the changes surrounding the
for_each_mesh_entry() macro fix real RCU bugs in
the code.

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