From: Xiubo Li Date: Wed, 10 Jul 2024 12:16:54 +0000 (+0800) Subject: ceph: periodically flush the cap releases X-Git-Tag: v6.11-rc1~36^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=578eb54c4a16713d99eed736660e30ae6eb1877f;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Venky Shankar Signed-off-by: Ilya Dryomov --- diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index 62238f3e6e195..276e34ab3e2cc 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -5446,6 +5446,8 @@ static void delayed_work(struct work_struct *work) } mutex_unlock(&mdsc->mutex); + ceph_flush_cap_releases(mdsc, s); + mutex_lock(&s->s_mutex); if (renew_caps) send_renew_caps(mdsc, s);