]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: delegete lock cache to client
authorYan, Zheng <zyan@redhat.com>
Mon, 30 Sep 2019 06:20:17 +0000 (14:20 +0800)
committerYan, Zheng <zyan@redhat.com>
Thu, 12 Dec 2019 18:04:13 +0000 (02:04 +0800)
commit9b419b91f1be9c18151b3378bf1a0498fb856cbc
treec0cabdb770cb4beaad5c255a3154e139fbb40aa2
parent9dfef48f8584fcf61c6f95e41df537ea5b0693b7
mds: delegete lock cache to client

Define cap bits for async dir operation. Lock cache for a given type of
dir operation can be delegeted to client through cap mechanism. As long
as client holds correspondindg cap, dir operation requests from the
client can use the lock cache. If mds want to invalidate a lock cache,
it needs to first revoke corresponding cap from client.

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