diff options
author | Yan, Zheng <[email protected]> | 2019-05-22 21:49:44 +0800 |
---|---|---|
committer | Ilya Dryomov <[email protected]> | 2019-07-08 14:01:42 +0200 |
commit | 543212b3a4a4abe0cbc610c704cc3cb85315c367 (patch) | |
tree | d0f08eb9510816bdb6de5d9a6c65120330d8c80a /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 749607731e26dfb2558118038c40e9c0c80d23b5 (diff) |
ceph: close race between d_name_cmp() and update_dentry_lease()
d_name_cmp() and update_dentry_lease() lock and unlock dentry->d_lock
respectively. Dentry may get renamed between them. The fix is moving
the dentry name compare into update_dentry_lease().
This patch introduce two version of update_dentry_lease(). One version
is for the case that parent inode is locked. It does not need to check
parent/target inode and dentry name. Another version is for the case
that parent inode is not locked. It checks parent/target inode and
dentry name after locking dentry->d_lock.
Signed-off-by: "Yan, Zheng" <[email protected]>
Reviewed-by: Jeff Layton <[email protected]>
Signed-off-by: Ilya Dryomov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions