]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: drive cap recall while dropping cache 30761/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 16 Sep 2019 00:52:29 +0000 (17:52 -0700)
committerNathan Cutler <ncutler@suse.com>
Wed, 16 Oct 2019 10:49:48 +0000 (12:49 +0200)
STEADY does not imply TRIM. We want to always trim as many caps as
possible.

Introduced-by: be49866a150e04438cef971dec7948eaf34852fc
Fixes: https://tracker.ceph.com/issues/41835
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 81e451e0c323d82123a9feb9489816cdedafbf4b)

src/mds/MDSRank.cc

index 28697dc659901e340345d2521fdb09986de8d741..3860538209e2f0f9176d11c6c6509857229974b5 100644 (file)
@@ -328,7 +328,8 @@ private:
     auto duration = std::chrono::duration<double>(now-recall_start).count();
 
     MDSGatherBuilder *gather = new MDSGatherBuilder(g_ceph_context);
-    auto [throttled, count] = server->recall_client_state(gather, Server::RecallFlags::STEADY);
+    auto flags = Server::RecallFlags::STEADY|Server::RecallFlags::TRIM;
+    auto [throttled, count] = server->recall_client_state(gather, flags);
     dout(10) << __func__
              << (throttled ? " (throttled)" : "")
              << " recalled " << count << " caps" << dendl;