Skip to content

Commit 77affc0

Browse files
committed
ceph: periodically flush the cap releases
JIRA: https://issues.redhat.com/browse/RHEL-48618 commit 578eb54 Author: Xiubo Li <xiubli@redhat.com> Date: Wed Jul 10 20:16:54 2024 +0800 ceph: periodically flush the cap releases The MDS could be waiting the caps releases infinitely in some corner case and then reporting the caps revoke stuck warning. To fix this we should periodically flush the cap releases. Link: https://tracker.ceph.com/issues/57244 Signed-off-by: Xiubo Li <xiubli@redhat.com> Reviewed-by: Venky Shankar <vshankar@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com> Signed-off-by: Xiubo Li <xiubli@redhat.com>
1 parent 60da98e commit 77affc0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/ceph/mds_client.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5170,6 +5170,8 @@ static void delayed_work(struct work_struct *work)
51705170
}
51715171
mutex_unlock(&mdsc->mutex);
51725172

5173+
ceph_flush_cap_releases(mdsc, s);
5174+
51735175
mutex_lock(&s->s_mutex);
51745176
if (renew_caps)
51755177
send_renew_caps(mdsc, s);

0 commit comments

Comments
 (0)