]> asedeno.scripts.mit.edu Git - linux.git/commit
locking/ww_mutex: Improve test to cover acquire context changes
authorPeter Zijlstra <peterz@infradead.org>
Fri, 3 Mar 2017 12:57:56 +0000 (13:57 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 16 Mar 2017 08:57:09 +0000 (09:57 +0100)
commitbf7b3ac2e36ac054f93e5dd8d85dfd754b5e1c09
tree17010ad6d0694cb065462dd0110c43f2eee0d39e
parent383776fa7527745224446337f2dcfb0f0d1b8b56
locking/ww_mutex: Improve test to cover acquire context changes

Currently each thread starts an acquire context only once, and
performs all its loop iterations under it.

This means that the Wound/Wait relations between threads are fixed.

To make things a little more realistic and cover more of the
functionality with the test, open a new acquire context for each loop.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/test-ww_mutex.c