]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 May 2013 03:33:05 +0000 (20:33 -0700)
commit678bfb06ac1c589dfe179d7bf86a57204afec044
treec14f9e03a8222cbf26072962c61fe8c1fd8d2c38
parent1c407b93add6c626075227db19bee97111fc6d6e
mac80211: use synchronize_rcu() with rcu_barrier()

commit 8ceb59557bdc373e532b87d4142ce27e04218f0e upstream.

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 f0a0e6f... "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.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/mac80211/cfg.c
net/mac80211/iface.c
net/mac80211/pm.c