refscale: Add acqrel, lock, and lock-irq
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 11 Mar 2021 02:02:36 +0000 (18:02 -0800)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 10 May 2021 23:05:05 +0000 (16:05 -0700)
commite9b800db96fa40170c5607d8968b2ec6212c2026
treed7806601f7e4fae681a747e98d38ac99fdf48246
parent0092eae4cb4e4a34b728efcf9d5857ab0ac2e6f6
refscale: Add acqrel, lock, and lock-irq

This commit adds scale_type of acqrel, lock, and lock-irq to
test acquisition and release.  Note that the refscale.nreaders=1
module parameter is required if you wish to test uncontended locking.
In contrast, acqrel uses a per-CPU variable, so should be just fine with
large values of the refscale.nreaders=1 module parameter.

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
kernel/rcu/refscale.c