diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2019-07-28 21:47:35 -0700 |
---|---|---|
committer | Peter Zijlstra <peterz@infradead.org> | 2019-08-06 12:49:15 +0200 |
commit | fce45cd41101f1a9620267146b21f09b3454d8db (patch) | |
tree | ff8142e67c6ec7cb5d6ed8aa0a7e662bfe57ce1a /arch/x86/include | |
parent | 91d2a812dfb98b3b4dad661529c33bc38d303461 (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