From: Johannes Berg Date: Sat, 14 May 2011 09:00:52 +0000 (+0200) Subject: mac80211: fix and simplify mesh locking X-Git-Tag: v3.0-rc2~7^2~16^2~50 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1928ecab620907a0953f811316d05f367f3f4dba;p=pandora-kernel.git mac80211: fix and simplify mesh locking The locking in mesh_{mpath,mpp}_table_grow not only has an rcu_read_unlock() missing, it's also racy (though really only technically since it's invoked from a single function only) since it obtains the new size of the table without any locking, so two invocations of the function could attempt the same resize. Additionally, it uses synchronize_rcu() which is rather expensive and can be avoided trivially here. Modify the functions to only use the table lock and use call_rcu() instead of synchronize_rcu(). Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed