]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: simplify recall warnings 26038/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 28 Jan 2019 23:48:38 +0000 (15:48 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Thu, 31 Jan 2019 20:07:54 +0000 (12:07 -0800)
commitc0b3a1148475ea7e563b1b8c13217b6e7c85b150
tree943993a9fe8af5e53243b57c8b77f9a39ede817b
parent3bc093fd9e9daf99f09abe68ce0c0077ef0f58da
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>
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