OSDN Git Service

locking/ww_mutex: Add kselftests for resolving ww_mutex cyclic deadlocks
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 1 Dec 2016 11:47:09 +0000 (11:47 +0000)
committerIngo Molnar <mingo@kernel.org>
Sat, 14 Jan 2017 10:37:16 +0000 (11:37 +0100)
commitd1b42b800e5d09dcee52812b4396aca3a3696ba9
treee2280766641a53d2e4dec0e42dffee2b5cd3f502
parent70207686e492fb97c11d88ae7d8ebce7d2d080aa
locking/ww_mutex: Add kselftests for resolving ww_mutex cyclic deadlocks

Check that ww_mutexes can detect cyclic deadlocks (generalised ABBA
cycles) and resolve them by lock reordering.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Maarten Lankhorst <dev@mblankhorst.nl>
Cc: Nicolai Hähnle <nhaehnle@gmail.com>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20161201114711.28697-7-chris@chris-wilson.co.uk
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/locking/test-ww_mutex.c