summaryrefslogtreecommitdiffstats
path: root/fs/Makefile
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-02-19 15:41:11 +0000
committerChandan Babu R <chandanbabu@kernel.org>2024-02-19 21:19:33 +0530
commitf70405afc99b1e5a3a1e60b6c05456fde2dbe622 (patch)
tree3d76b8b2cc4ffaffc0dafe89e94547971684af68 /fs/Makefile
parent49c379d3a72ab86aafeafebe6b43577acb1ef359 (diff)
downloadlinux-stable-f70405afc99b1e5a3a1e60b6c05456fde2dbe622.tar.gz
linux-stable-f70405afc99b1e5a3a1e60b6c05456fde2dbe622.tar.bz2
linux-stable-f70405afc99b1e5a3a1e60b6c05456fde2dbe622.zip
locking: Add rwsem_assert_held() and rwsem_assert_held_write()
Modelled after lockdep_assert_held() and lockdep_assert_held_write(), but are always active, even when lockdep is disabled. Of course, they don't test that _this_ thread is the owner, but it's sufficient to catch many bugs and doesn't incur the same performance penalty as lockdep. Acked-by: "Peter Zijlstra (Intel)" <peterz@infradead.org> Acked-by: Waiman Long <longman@redhat.com> Acked-by: "Darrick J. Wong" <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'fs/Makefile')
0 files changed, 0 insertions, 0 deletions