]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: handle client session messages when mds is stopping 19585/head
authorYan, Zheng <zyan@redhat.com>
Wed, 29 Nov 2017 10:44:30 +0000 (18:44 +0800)
committerYan, Zheng <zyan@redhat.com>
Tue, 19 Dec 2017 02:24:19 +0000 (10:24 +0800)
commit4943899005267250f42909e2a91a8a54e9479da4
treeb153d2e212c801a2f060589b9e29c448057144f1
parent88b4534a0fab6f7020874ff8903b2f2eb9d06eb2
mds: handle client session messages when mds is stopping

handle session messages except CEPH_SESSION_REQUEST_OPEN. The problem
I found is that mds ignores CEPH_SESSION_REQUEST_RENEWCAPS, which
causes client sessions to become stale. Locker::revoke_stale_caps()
increases client caps' sequence number. This causes clients to warn
about caps' sequence number mismatch when handle caps import/export
message.

mds should handle CEPH_SESSION_FLUSHMSG_ACK message too. Because
one step of exporting subtree is flushing session messages.

Fixes: http://tracker.ceph.com/issues/22460
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 559fdcaec28c8459c5d801efc3842e604324f91f)
src/mds/Server.cc