projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4a29f2
)
ceph: do not drop lease during revalidate
author
Sage Weil
<sage@newdream.net>
Mon, 21 Dec 2009 19:48:44 +0000
(11:48 -0800)
committer
Sage Weil
<sage@newdream.net>
Tue, 22 Dec 2009 00:39:58 +0000
(16:39 -0800)
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>
fs/ceph/dir.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ceph/dir.c
b/fs/ceph/dir.c
index 89ce3ba4a614104c100bcb9eb6e343c5bf15ad30..fde839c61236e84f89becaf7dce23fed642d4d04 100644
(file)
--- 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);