From: Xiubo Li Date: Mon, 29 Jul 2024 06:20:41 +0000 (+0800) Subject: client: flush the caps release in filesystem sync X-Git-Tag: v18.2.5~263^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c6233987e58249943d3bb5fd0637a543029bc4f7;p=ceph.git client: flush the caps release in filesystem sync 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 (cherry picked from commit b5bfc4526a2eb242ee580f6908bd9a980a5cf51c) --- diff --git a/src/client/Client.cc b/src/client/Client.cc index a84e69f38f2f..3e031cfed76a 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -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();