diff --git a/fs/ceph/caps.c b/fs/ceph/caps.c index 74144d6389f0af2181d0f1e22fb4ae67c9839ca5..6afc1affb50a3bceca58a3133ec550c98241853b 100644 --- a/fs/ceph/caps.c +++ b/fs/ceph/caps.c @@ -2984,6 +2984,7 @@ int ceph_encode_dentry_release(void **p, struct dentry *dentry, memcpy(*p, dentry->d_name.name, dentry->d_name.len); *p += dentry->d_name.len; rel->dname_seq = cpu_to_le32(di->lease_seq); + __ceph_mdsc_drop_dentry_lease(dentry); } spin_unlock(&dentry->d_lock); return ret;