diff options
author | Sage Weil <sage@newdream.net> | 2009-12-21 11:48:44 -0800 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-12-21 16:39:58 -0800 |
commit | 5de7bf8afa87f75af5ef3d6f9fce3e171cac834c (patch) | |
tree | 42d3cdf8c6a78ee9057adca516dea26c890be24e /fs/ceph/dir.c | |
parent | c4a29f26d50bea65809ca670992108a33aa2efa6 (diff) | |
download | linux-3.10-5de7bf8afa87f75af5ef3d6f9fce3e171cac834c.tar.gz linux-3.10-5de7bf8afa87f75af5ef3d6f9fce3e171cac834c.tar.bz2 linux-3.10-5de7bf8afa87f75af5ef3d6f9fce3e171cac834c.zip |
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>
Diffstat (limited to 'fs/ceph/dir.c')
-rw-r--r-- | fs/ceph/dir.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c index 89ce3ba4a61..fde839c6123 100644 --- a/fs/ceph/dir.c +++ b/fs/ceph/dir.c @@ -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); |