summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJeff Layton2017-01-27 15:13:57 +0100
committerIlya Dryomov2017-02-20 12:16:09 +0100
commitf5d55f03973f79a008bf8635452849f8ef589c23 (patch)
tree2e8036d1944ed97451ad009451cae2d3bc0724b3 /sound
parentceph: don't update_dentry_lease unless we actually got one (diff)
downloadkernel-qcow2-linux-f5d55f03973f79a008bf8635452849f8ef589c23.tar.gz
kernel-qcow2-linux-f5d55f03973f79a008bf8635452849f8ef589c23.tar.xz
kernel-qcow2-linux-f5d55f03973f79a008bf8635452849f8ef589c23.zip
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 'sound')
0 files changed, 0 insertions, 0 deletions