提交 5de7bf8a 编写于 作者: S Sage Weil

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: NSage Weil <sage@newdream.net>
上级 c4a29f26
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册