aboutsummaryrefslogtreecommitdiff
path: root/net/switchdev/switchdev.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <[email protected]>2019-07-28 21:47:35 -0700
committerPeter Zijlstra <[email protected]>2019-08-06 12:49:15 +0200
commitfce45cd41101f1a9620267146b21f09b3454d8db (patch)
treeff8142e67c6ec7cb5d6ed8aa0a7e662bfe57ce1a /net/switchdev/switchdev.c
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 <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Acked-by: Waiman Long <[email protected]> Cc: [email protected] Cc: Davidlohr Bueso <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions