]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client: flush the caps release in filesystem sync 59397/head
authorXiubo Li <xiubli@redhat.com>
Mon, 29 Jul 2024 06:20:41 +0000 (14:20 +0800)
committerXiubo Li <xiubli@redhat.com>
Thu, 22 Aug 2024 07:34:18 +0000 (15:34 +0800)
We have hit a race between cap releases and cap revoke request
that will cause the check_caps() to miss sending a cap revoke ack
to MDS. And the client will depend on the cap release to release
that revoking caps, which could be delayed for some unknown reasons.

In Kclient we have figured out the RCA about race and we need
a way to explictly trigger this manually could help to get rid
of the caps revoke stuck issue.

Fixes: https://tracker.ceph.com/issues/67221
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit b5bfc4526a2eb242ee580f6908bd9a980a5cf51c)

src/client/Client.cc

index a84e69f38f2fdcca7691a0c805b6d27a0398a924..3e031cfed76af49cd0227a1761d24db9024c4739 100644 (file)
@@ -12161,6 +12161,8 @@ int Client::_sync_fs()
   // flush the mdlog before waiting for unsafe requests.
   flush_mdlog_sync();
 
+  flush_cap_releases();
+
   // wait for unsafe mds requests
   wait_unsafe_requests();