]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: handle client session messages when mds is stopping 19234/head
authorYan, Zheng <zyan@redhat.com>
Wed, 29 Nov 2017 10:44:30 +0000 (18:44 +0800)
committerYan, Zheng <zyan@redhat.com>
Mon, 18 Dec 2017 01:09:10 +0000 (09:09 +0800)
commit559fdcaec28c8459c5d801efc3842e604324f91f
tree8d4401458de441d582afb316e1e8962f4ef7f7ea
parentb1378b343add5134ab881b38a93f47f3f9cb40bb
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>
src/mds/Server.cc