diff options
author | Jeff Layton <jlayton@redhat.com> | 2017-01-27 09:13:57 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-02-20 12:16:09 +0100 |
commit | f5d55f03973f79a008bf8635452849f8ef589c23 (patch) | |
tree | 2e8036d1944ed97451ad009451cae2d3bc0724b3 /tools/perf/scripts/python/stackcollapse.py | |
parent | 80d025ffede88969f6adf7266fbdedfd5641148a (diff) |
ceph: vet the target and parent inodes before updating dentry lease
In a later patch, we're going to need to allow ceph_fill_trace to
update the dentry's lease when the parent is not locked. This is
potentially racy though -- by the time we get around to processing the
trace, the parent may have already changed.
Change update_dentry_lease to take a ceph_vino pointer and use that to
ensure that the dentry's parent still matches it before updating the
lease.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Reviewed-by: Yan, Zheng <zyan@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