summaryrefslogtreecommitdiff
path: root/arch/x86/include
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2019-07-28 21:47:35 -0700
committerPeter Zijlstra <peterz@infradead.org>2019-08-06 12:49:15 +0200
commitfce45cd41101f1a9620267146b21f09b3454d8db (patch)
treeff8142e67c6ec7cb5d6ed8aa0a7e662bfe57ce1a /arch/x86/include
parent91d2a812dfb98b3b4dad661529c33bc38d303461 (diff)
locking/rwsem: Check for operations on an uninitialized rwsem
Currently rwsems is the only locking primitive that lacks this debug feature. Add it under CONFIG_DEBUG_RWSEMS and do the magic checking in the locking fastpath (trylock) operation such that we cover all cases. The unlocking part is pretty straightforward. Signed-off-by: Davidlohr Bueso <dbueso@suse.de> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Waiman Long <longman@redhat.com> Cc: mingo@kernel.org Cc: Davidlohr Bueso <dave@stgolabs.net> Link: https://lkml.kernel.org/r/20190729044735.9632-1-dave@stgolabs.net
Diffstat (limited to 'arch/x86/include')
0 files changed, 0 insertions, 0 deletions