Skip to contentSkip to conversation

ceph: periodically flush the cap releases

PATCH In review [email protected] 2 participants 2 messages Jul 10, 2024 – Jul 11, 2024 Ceph client

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ceph: periodically flush the cap releases

From: Xiubo Li <[email protected]>

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.

URL: https://tracker.ceph.com/issues/57244

---
 fs/ceph/mds_client.c | 2 ++
 1 file changed, 2 insertions(+)
fs/ceph/mds_client.c +2 -0
index c750ebcad972..b7fcaa6e28b4 100644
@@ -5474,6 +5474,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);
Signature · 1 line
2.43.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 27 lines · On Wed, Jul 10, 2024 at 5:57 PM <[email protected]> wrote:

From: Xiubo Li <[email protected]>

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.

URL: https://tracker.ceph.com/issues/57244

---
 fs/ceph/mds_client.c | 2 ++
 1 file changed, 2 insertions(+)
fs/ceph/mds_client.c +2 -1
index c750ebcad972..b7fcaa6e28b4 100644
@@ -5474,6 +5474,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);
--
Quoted 2 lines

2.43.0

LGTM.

Signature · 2 lines
Cheers,
Venky