]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds: add working set minimum for caps
authorPatrick Donnelly <pdonnell@redhat.com>
Thu, 6 Aug 2020 16:04:23 +0000 (09:04 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Fri, 7 Aug 2020 05:17:58 +0000 (22:17 -0700)
commit5309f1d576be96e5d7978b448a08fa12a8379f6d
tree3b6d258b580d09125703886a518267f900a6c9b4
parent0db1d5b525195b48cbfc0d7b5bbb2e14e4eb9b80
mds: add working set minimum for caps

A client may hold many inodes pinned in its cache for open files. That
client may be unable to release those caps to respond to cache pressure
from the MDS (or quiescent client cap recall). We should not complain if
that number of capabilities is reasonable (< 10k by default).

Fixes: https://tracker.ceph.com/issues/46830
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 63392e1b65fbead6ef8c7acd6a70e6ef5b322390)
src/common/options.cc
src/mds/Beacon.cc
src/mds/SessionMap.h