]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: filter out blacklisted clients when importing caps
authorYan, Zheng <zyan@redhat.com>
Sun, 22 Apr 2018 09:46:28 +0000 (17:46 +0800)
committerPrashant D <pdhange@redhat.com>
Wed, 23 May 2018 05:58:08 +0000 (01:58 -0400)
commit0fb21b6dc239a7a040072d4ef24ea0a56dd75c5d
tree61e3365e7cf2083afc427cdd33e24dc9ba00003d
parentaffc230bd62c611e3feb819631dad6d3be343021
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
(cherry picked from commit e43c02d6abd065dff413440a0f9c3d3f6653e87b)

Conflicts:
src/mds/MDCache.h: Resolved in rejoin_open_sessions_finish
src/mds/Migrator.cc : Resolved in handle_export_dir
and decode_import_inode_caps
src/mds/Server.cc : Resolved in _rename_prepare_import
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