diff options
author | 2014-08-12 10:47:48 -0700 | |
---|---|---|
committer | 2014-09-16 10:08:03 -0700 | |
commit | 39953dfd40077c7480b1d5deb4d617e086b1c865 (patch) | |
tree | 5839c9da287c82a7c7103199a3b793ecb5391f2f /tools/perf/scripts/python/export-to-postgresql.py | |
parent | rcu: Don't track sysidle state if no nohz_full= CPUs (diff) | |
download | wireguard-linux-39953dfd40077c7480b1d5deb4d617e086b1c865.tar.xz wireguard-linux-39953dfd40077c7480b1d5deb4d617e086b1c865.zip |
rcu: Avoid misordering in __call_rcu_nocb_enqueue()
The NOCB leader wakeup ordering depends on the store to the header
happening before the check for the leader already being awake. However,
because atomic_long_add() does not return a value, it does not provide
ordering guarantees, the incorrect comment in wake_nocb_leader()
notwithstanding. This commit therefore adds a smp_mb__after_atomic()
after the final atomic_long_add() to provide the needed ordering
guarantee.
Reported-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Tested-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions