]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: filter out blacklisted clients when importing caps 21592/head
authorYan, Zheng <zyan@redhat.com>
Sun, 22 Apr 2018 09:46:28 +0000 (17:46 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 23 Apr 2018 08:43:36 +0000 (16:43 +0800)
commite43c02d6abd065dff413440a0f9c3d3f6653e87b
tree3ed9f480c2607cf99585d2184969cbe7de7cd43e
parent857e3edac5eec82f1d04caec440d3d6e61bbf679
mds: filter out blacklisted clients when importing caps

The very first step of importing caps is calling
Server::prepare_force_open_sessions(). This patch makes the function
ignore blacklisted clients and return a session map for clients that
are not blacklisted. This patch also modify the codes that actually
do cap imports, make them skip caps for clients that are not in the
session map.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: http://tracker.ceph.com/issues/23518
src/mds/Capability.h
src/mds/MDCache.cc
src/mds/MDCache.h
src/mds/Migrator.cc
src/mds/Migrator.h
src/mds/Mutation.h
src/mds/Server.cc
src/mds/Server.h