]> asedeno.scripts.mit.edu Git - linux.git/commit
rcutorture: Correctly handle grace-period sequence wrap
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 15 May 2018 22:24:41 +0000 (15:24 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 12 Jul 2018 22:38:55 +0000 (15:38 -0700)
commitd72193123c81ae6123d108b3be2096f3f13b25a6
tree2ec9801c5c3b7c1f9411ba3a1bc6005d1f154198
parent2e3e5e55010105f9d4351f68e15dbc43402a7794
rcutorture: Correctly handle grace-period sequence wrap

The new ->gq_seq grace-period sequence numbers must be shifted down,
which give artifacts when these numbers wrap.  This commit therefore
enables rcutorture and rcuperf to handle grace-period sequence numbers
even if they do wrap.  It does this by allowing a special subtraction
function to be specified, and this function subtracts before shifting.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/rcu.h
kernel/rcu/rcuperf.c
kernel/rcu/rcutorture.c
kernel/rcu/tree.c