diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-06-24 19:46:30 +0200 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-07-17 23:58:47 +0200 |
commit | d6ada2cf2f81dab8a231d0ef8fb5dec4f5ac8379 (patch) | |
tree | 8c238875b70f7a146dc231d8e2915d17be26a108 /tools | |
parent | rcu: Switch synchronize_sched_expedited() to stop_one_cpu() (diff) | |
download | linux-d6ada2cf2f81dab8a231d0ef8fb5dec4f5ac8379.tar.xz linux-d6ada2cf2f81dab8a231d0ef8fb5dec4f5ac8379.zip |
rcu: Rework synchronize_sched_expedited() counter handling
Now that synchronize_sched_expedited() have a mutex, it can use simpler
work-already-done detection scheme. This commit simplifies this scheme
by using something similar to the sequence-locking counter scheme.
A counter is incremented before and after each grace period, so that
the counter is odd in the midst of the grace period and even otherwise.
So if the counter has advanced to the second even number that is
greater than or equal to the snapshot, the required grace period has
already happened.
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions