]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: fix revoking caps after after stale->resume circle 32909/head
authorYan, Zheng <zyan@redhat.com>
Thu, 14 Nov 2019 12:15:14 +0000 (20:15 +0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 27 Jan 2020 16:43:02 +0000 (17:43 +0100)
commit6d1ce3faa679355440c322ba0f261c5cba6a4e65
tree529c72c410ae1fd3acf28c68ca469de16c5e7a5e
parent871279ef9eda404cc8e9571e9cc331cfaa33bd4a
mds: fix revoking caps after after stale->resume circle

After session stale->resume circle, client thinks its caps get lost. But
MDS may keep some client caps untouched. To revoke untouched caps, MDS
needs to re-issue them to client, then do revocation. If MDS skips the
're-issue' step, client will not response to the cap revoke.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Fixes: https://tracker.ceph.com/issues/42826
(cherry picked from commit b6898d65a8e5f044a7bd46005d7a8e8a3d258742)

Conflicts:
src/mds/Locker.cc
- nautilus uses MClientCaps::create where master has "make_message<MClientCaps>"
src/mds/Locker.cc