]> git.baikalelectronics.ru Git - kernel.git/commit
mac80211: use synchronize_rcu() with rcu_barrier()
authorBob Copeland <me@bobcopeland.com>
Thu, 18 Apr 2013 22:26:49 +0000 (18:26 -0400)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 22 Apr 2013 13:40:39 +0000 (15:40 +0200)
commit8e6e09b569294156967d0c8ffc842c637a2370a6
tree95fab44394b51719702afc7bbe22789043be5f65
parentffc6d355428da55e028d947acb782a294769a052
mac80211: use synchronize_rcu() with rcu_barrier()

The RCU docs used to state that rcu_barrier() included a wait
for an RCU grace period; however the comments for rcu_barrier()
as of commit 40e892d... "rcu: Clarify memory-ordering properties
of grace-period primitives" contradict this.

So add back synchronize_{rcu,net}() to where they once were,
but keep the rcu_barrier()s for the call_rcu() callbacks.

Cc: stable <stable@vger.kernel.org>
Signed-off-by: Bob Copeland <bob@cozybit.com>
Reviewed-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/cfg.c
net/mac80211/iface.c
net/mac80211/pm.c