]> git-server-git.apps.pok.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>
Mon, 21 Oct 2019 02:52:21 +0000 (10:52 +0800)
commit8c3eb9b961e6563c5c65b227e1d2749f2d7fa4dd
treeff8cf3e64eb5d95969b6451e09e38fdec063765e
parentb92d5a796829e0424ba36aee053147591640caa0
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>
(cherry picked from commit cb62030f0468fc04735c1b4cff73da779cb11ad8)

 Conflicts:
src/mds/CInode.cc
src/mds/Capability.h
src/mds/Locker.cc
src/mds/Migrator.cc
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