• P
    rcu: Rework synchronize_sched_expedited() counter handling · d6ada2cf
    Paul E. McKenney 提交于
    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: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    d6ada2cf
tree.c 128.9 KB