locking/selftest: Support queued rwlock
authorWaiman Long <Waiman.Long@hp.com>
Wed, 6 Aug 2014 17:22:02 +0000 (13:22 -0400)
committerIngo Molnar <mingo@kernel.org>
Wed, 13 Aug 2014 08:33:35 +0000 (10:33 +0200)
commitae17ea0ec7d8fa64fbb773a52b2df5ba4766bcb8
tree1ba62bb20fa9723c9a6af118dd96455d9f9109a4
parentf0bab73cb539fb803c4d419951e8d28aa4964f8f
locking/selftest: Support queued rwlock

The queued rwlock does not support the use of recursive read-lock in
the process context. With changes in the lockdep code to check and
disallow recursive read-lock, it is also necessary for the locking
selftest to be updated to change the process context recursive read
locking results from SUCCESS to FAILURE for rwlock.

Signed-off-by: Waiman Long <Waiman.Long@hp.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: Rik van Riel <riel@redhat.com>
Cc: Scott J Norton <scott.norton@hp.com>
Cc: Fengguang Wu <fengguang.wu@intel.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Link: http://lkml.kernel.org/r/1407345722-61615-3-git-send-email-Waiman.Long@hp.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
lib/locking-selftest.c