diff options
| author | Jan Kara <[email protected]> | 2020-02-24 11:52:17 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2020-02-26 12:14:27 +0000 |
| commit | bc36dfffd5f3f19edcf85954d93eb0bc45875c37 (patch) | |
| tree | 725b67fb30346bf312326d501eefbfff53a29c98 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | Linux 5.6-rc3 (diff) | |
| download | kernel-bc36dfffd5f3f19edcf85954d93eb0bc45875c37.tar.gz kernel-bc36dfffd5f3f19edcf85954d93eb0bc45875c37.zip | |
ext2: Silence lockdep warning about reclaim under xattr_sem
Lockdep complains about a chain:
sb_internal#2 --> &ei->xattr_sem#2 --> fs_reclaim
and shrink_dentry_list -> ext2_evict_inode -> ext2_xattr_delete_inode ->
down_write(ei->xattr_sem) creating a locking cycle in the reclaim path.
This is however a false positive because when we are in
ext2_evict_inode() we are the only holder of the inode reference and
nobody else should touch xattr_sem of that inode. So we cannot ever
block on acquiring the xattr_sem in the reclaim path.
Silence the lockdep warning by using down_write_trylock() in
ext2_xattr_delete_inode() to not create false locking dependency.
Reported-by: "J. R. Okajima" <[email protected]>
Reviewed-by: Ritesh Harjani <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
