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: Sage Weil <sage@newdream.net>
This commit is contained in:
Sage Weil 2009-12-21 11:48:44 -08:00
parent c4a29f26d5
commit 5de7bf8afa

View File

@ -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);