• Paul E. McKenney's avatar
    srcu: Force full grace-period ordering · d85b62f1
    Paul E. McKenney authored
    If a process invokes synchronize_srcu(), is delayed just the right amount
    of time, and thus does not sleep when waiting for the grace period to
    complete, there is no ordering between the end of the grace period and
    the code following the synchronize_srcu().  Similarly, there can be a
    lack of ordering between the end of the SRCU grace period and callback
    invocation.
    
    This commit adds the necessary ordering.
    Reported-by: default avatarLance Roy <ldr709@gmail.com>
    Signed-off-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
    [ paulmck: Further smp_mb() adjustment per email with Lance Roy. ]
    d85b62f1
tree.h 29.1 KB