Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5de7bf8a authored by Sage Weil's avatar Sage Weil
Browse files

ceph: do not drop lease during revalidate



We need to hold session s_mutex for __ceph_mdsc_drop_dentry_lease(), which
we don't, so skip it.  It was purely an optimization.

Signed-off-by: default avatarSage Weil <sage@newdream.net>
parent c4a29f26
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -920,8 +920,6 @@ static int dentry_lease_is_valid(struct dentry *dentry)
				di->lease_renew_after = 0;
				di->lease_renew_from = jiffies;
			}
		} else {
			__ceph_mdsc_drop_dentry_lease(dentry);
		}
	}
	spin_unlock(&dentry->d_lock);