aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/lockdep.h
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2020-09-16 11:45:26 -0700
committerPaul E. McKenney <paulmck@kernel.org>2020-11-02 17:10:00 -0800
commitf505d4346f6129d4708338491cf23ca9cf1d8f2a (patch)
tree0a0704e259ecb559859ffdcc28ce6abd326b805f /include/linux/lockdep.h
parentnet: sched: Remove broken definitions and un-hide for !LOCKDEP (diff)
downloadwireguard-linux-f505d4346f6129d4708338491cf23ca9cf1d8f2a.tar.xz
wireguard-linux-f505d4346f6129d4708338491cf23ca9cf1d8f2a.zip
srcu: Use a more appropriate lockdep helper
The lockdep_is_held() macro is defined as: #define lockdep_is_held(lock) lock_is_held(&(lock)->dep_map) This hides away the dereference, so that builds with !LOCKDEP don't break. This works in current kernels because the RCU_LOCKDEP_WARN() eliminates its condition at preprocessor time in !LOCKDEP kernels. However, later patches in this series will cause the compiler to see this condition even in !LOCKDEP kernels. This commit prepares for this upcoming change by switching from lock_is_held() to lockdep_is_held(). Signed-off-by: Jakub Kicinski <kuba@kernel.org> -- CC: jiangshanlai@gmail.com CC: paulmck@kernel.org CC: josh@joshtriplett.org CC: rostedt@goodmis.org CC: mathieu.desnoyers@efficios.com Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'include/linux/lockdep.h')
0 files changed, 0 insertions, 0 deletions