diff options
author | Xiubo Li <xiubli@redhat.com> | 2024-07-29 10:04:11 +0200 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2024-09-24 22:51:28 +0200 |
commit | adc52461767f675264f2876d61e7220c113023e8 (patch) | |
tree | c64561f122bb22e2ee04a1c08f04bf88067ca624 /fs/ceph/mds_client.c | |
parent | ceph: rename ceph_flush_cap_releases() to ceph_flush_session_cap_releases() (diff) | |
download | linux-adc52461767f675264f2876d61e7220c113023e8.tar.xz linux-adc52461767f675264f2876d61e7220c113023e8.zip |
ceph: flush all caps releases when syncing the whole filesystem
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.
Link: https://tracker.ceph.com/issues/67221
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/mds_client.c')
-rw-r--r-- | fs/ceph/mds_client.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 36c5886b5aac..9682c6ae3866 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -5877,6 +5877,7 @@ void ceph_mdsc_sync(struct ceph_mds_client *mdsc) mutex_unlock(&mdsc->mutex); ceph_flush_dirty_caps(mdsc); + ceph_flush_cap_releases(mdsc); spin_lock(&mdsc->cap_dirty_lock); want_flush = mdsc->last_cap_flush_tid; if (!list_empty(&mdsc->cap_flush_list)) { |