Skip to content

Commit

Permalink
ceph: periodically flush the cap releases
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
lxbsz authored and idryomov committed Jul 23, 2024
1 parent 77bb4a5 commit 578eb54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ceph/mds_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 578eb54

Please sign in to comment.