]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mds: add 2nd order recall throttle
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 19 Feb 2019 00:07:25 +0000 (16:07 -0800)
committerPatrick Donnelly <pdonnell@redhat.com>
Tue, 19 Feb 2019 00:28:33 +0000 (16:28 -0800)
commitaa6756d531445a03505f1a15e2f5d10ca10de697
tree4036ad11b0416f46992118ada31e058e261e79db
parent57e413e87a85aceff78a1f69b6c0396fc524d98e
mds: add 2nd order recall throttle

Purpose of this is to moderate the ramp up of recalling caps on a session.  In
particular, we don't want to exhaust the mds_recall_max_decay_threshold within
a short amount of time. This would happen with cache drop on clients which are
trying to unpin dentries (via remount callbacks). The cache drop recall worker
context is driving new recalls in response to flush ACKs but no caps are being
released yet.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
src/mds/Server.cc
src/mds/SessionMap.cc
src/mds/SessionMap.h