6 * This litmus test demonstrates that an RCU reader can never see a write that
7 * follows a grace period, if it did not see writes that precede that grace
10 * This is a typical pattern of RCU usage, where the write before the grace
11 * period assigns a pointer, and the writes following the grace period destroy
12 * the object that the pointer used to point to.
14 * This is one implication of the RCU grace-period guarantee, which says (among
15 * other things) that an RCU read-side critical section cannot span a grace period.
24 P0(int *x, int *z, int **y)
30 r0 = rcu_dereference(*y);
35 P1(int *x, int *z, int **y)
37 rcu_assign_pointer(*y, z);
42 exists (0:r0=x /\ 0:r1=0)