diff options
| author | Yan, Zheng <zyan@redhat.com> | 2019-05-22 21:49:44 +0800 |
|---|---|---|
| committer | Ilya Dryomov <idryomov@gmail.com> | 2019-07-08 14:01:42 +0200 |
| commit | 543212b3a4a4abe0cbc610c704cc3cb85315c367 (patch) | |
| tree | d0f08eb9510816bdb6de5d9a6c65120330d8c80a /tools/perf/scripts/python/stackcollapse.py | |
| parent | ceph: fix improper use of smp_mb__before_atomic() (diff) | |
| download | linux-543212b3a4a4abe0cbc610c704cc3cb85315c367.tar.gz linux-543212b3a4a4abe0cbc610c704cc3cb85315c367.zip | |
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" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
