diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2014-09-29 09:14:23 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2014-09-30 03:10:00 -0400 |
commit | e34191fad8e5d9fe4e76f6d03b5e29e3eae7535a (patch) | |
tree | bdf4b88a473d2a7c416cf44dc826cb8393cb0b4a /Documentation | |
parent | dd56af42bd829c6e770ed69812bd65a04eaeb1e4 (diff) |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/locking/locktorture.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/locking/locktorture.txt b/Documentation/locking/locktorture.txt index be715015e0f7..619f2bb136a5 100644 --- a/Documentation/locking/locktorture.txt +++ b/Documentation/locking/locktorture.txt | |||
@@ -45,6 +45,11 @@ torture_type Type of lock to torture. By default, only spinlocks will | |||
45 | o "spin_lock_irq": spin_lock_irq() and spin_unlock_irq() | 45 | o "spin_lock_irq": spin_lock_irq() and spin_unlock_irq() |
46 | pairs. | 46 | pairs. |
47 | 47 | ||
48 | o "rw_lock": read/write lock() and unlock() rwlock pairs. | ||
49 | |||
50 | o "rw_lock_irq": read/write lock_irq() and unlock_irq() | ||
51 | rwlock pairs. | ||
52 | |||
48 | o "mutex_lock": mutex_lock() and mutex_unlock() pairs. | 53 | o "mutex_lock": mutex_lock() and mutex_unlock() pairs. |
49 | 54 | ||
50 | o "rwsem_lock": read/write down() and up() semaphore pairs. | 55 | o "rwsem_lock": read/write down() and up() semaphore pairs. |