]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds: drive cap recall while dropping cache 30389/head
authorPatrick Donnelly <pdonnell@redhat.com>
Mon, 16 Sep 2019 00:52:29 +0000 (17:52 -0700)
committerPatrick Donnelly <pdonnell@redhat.com>
Mon, 16 Sep 2019 03:43:24 +0000 (20:43 -0700)
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>
src/mds/MDSRank.cc

index 77696da76fc19afff2df38867685da12d918a687..4fa74fa87aec6ddf94b24d0475aa221d6ca3351a 100644 (file)
@@ -329,7 +329,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;