locktorture: Support rwlocks
authorDavidlohr Bueso <dave@stgolabs.net>
Mon, 29 Sep 2014 13:14:23 +0000 (06:14 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 30 Sep 2014 07:10:00 +0000 (00:10 -0700)
commite34191fad8e5d9fe4e76f6d03b5e29e3eae7535a
treebdf4b88a473d2a7c416cf44dc826cb8393cb0b4a
parentdd56af42bd829c6e770ed69812bd65a04eaeb1e4
locktorture: Support rwlocks

Add a "rw_lock" torture test to stress kernel rwlocks and their irq
variant. Reader critical regions are 5x longer than writers. As such
a similar ratio of lock acquisitions is seen in the statistics. In the
case of massive contention, both hold the lock for 1/10 of a second.

Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/locking/locktorture.txt
kernel/locking/locktorture.c
tools/testing/selftests/rcutorture/configs/lock/CFLIST
tools/testing/selftests/rcutorture/configs/lock/LOCK04 [new file with mode: 0644]
tools/testing/selftests/rcutorture/configs/lock/LOCK04.boot [new file with mode: 0644]