]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: optimize revoking stale caps
authorYan, Zheng <zyan@redhat.com>
Fri, 23 Nov 2018 08:19:52 +0000 (16:19 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 15 Jan 2019 08:35:53 +0000 (16:35 +0800)
commitcb62030f0468fc04735c1b4cff73da779cb11ad8
treeb580ee54010bb917006755a9afdeb3774773876a
parentcb6e7184458e64720ad83c266e5e393a80c32697
mds: optimize revoking stale caps

For caps that are not being revoked and don't have writeable range
and don't want exclusive caps or file read/write. there is no need
to call Locker::revoke_stale_caps(Capability*). Because these caps
don't need recover and don't affect eval_gather()/try_eval().

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
src/mds/CInode.cc
src/mds/Capability.cc
src/mds/Capability.h
src/mds/Locker.cc
src/mds/Locker.h
src/mds/Migrator.cc
src/mds/Server.cc
src/mds/SessionMap.h