]> git.baikalelectronics.ru Git - kernel.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)
commit9fee5943e684ca575a04735655b1e516424ea283
tree2ec9801c5c3b7c1f9411ba3a1bc6005d1f154198
parentb0161fc911017909a0f9fbcef4012f10efc7e90b
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