Skip to content

Commit 578eb54

Browse files
lxbszidryomov
authored andcommitted
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 <[email protected]> Reviewed-by: Venky Shankar <[email protected]> Signed-off-by: Ilya Dryomov <[email protected]>
1 parent 77bb4a5 commit 578eb54

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
@@ -5446,6 +5446,8 @@ static void delayed_work(struct work_struct *work)
54465446
}
54475447
mutex_unlock(&mdsc->mutex);
54485448

5449+
ceph_flush_cap_releases(mdsc, s);
5450+
54495451
mutex_lock(&s->s_mutex);
54505452
if (renew_caps)
54515453
send_renew_caps(mdsc, s);

0 commit comments

Comments
 (0)