diff options
| author | Matthew Wilcox (Oracle) <[email protected]> | 2024-02-19 15:41:11 +0000 |
|---|---|---|
| committer | Chandan Babu R <[email protected]> | 2024-02-19 15:49:33 +0000 |
| commit | f70405afc99b1e5a3a1e60b6c05456fde2dbe622 (patch) | |
| tree | 3d76b8b2cc4ffaffc0dafe89e94547971684af68 /fs/xfs/xfs_inode.c | |
| parent | xfs: use kvfree for buf in xfs_ioc_getbmap (diff) | |
| download | kernel-f70405afc99b1e5a3a1e60b6c05456fde2dbe622.tar.gz kernel-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)" <[email protected]>
Acked-by: Waiman Long <[email protected]>
Acked-by: "Darrick J. Wong" <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Signed-off-by: "Matthew Wilcox (Oracle)" <[email protected]>
Signed-off-by: Chandan Babu R <[email protected]>
Diffstat (limited to 'fs/xfs/xfs_inode.c')
0 files changed, 0 insertions, 0 deletions
