]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: simplify recall warnings
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 28 Jan 2019 23:48:38 +0000 (15:48 -0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 24 Oct 2019 15:54:50 +0000 (17:54 +0200)
commit063b795d3b80d39d97ad37a1ad97e30bf7b6f22c
tree4cf7e0895e8e8cd808bfe9f911a649205b101879
parente33cfe925d8f8ff3b3e8355ae432fb80d9beb2a8
mds: simplify recall warnings

Instead of a timeout and complicated decisions about whether the client is
releasing caps in an expeditious fashion, just use a DecayCounter that tracks
the number of caps we've recalled. This counter is decremented whenever the
client releases caps. If the counter passes a threshold, then we raise the
warning.

Similar reworking is done for the steady-state recall of client caps. Another
release DecayCounter is added so we can tell when the client is not releasing
any more caps.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit c0b3a11)

Conflicts:
PendingReleaseNotes
src/mds/Beacon.cc
src/mds/Server.cc
src/mds/SessionMap.cc
src/mds/SessionMap.h
PendingReleaseNotes
qa/tasks/cephfs/test_client_limits.py
src/common/legacy_config_opts.h
src/common/options.cc
src/mds/Beacon.cc
src/mds/Server.cc
src/mds/Server.h
src/mds/SessionMap.cc
src/mds/SessionMap.h