Re: [PATCH v2 0/7] ceph/libceph: bound sync waits and speed up recovery after network disruption

From: Alex Markuze

Date: Sun Nov 22 2026 - 15:27:32 EST


Hi Ionut,

The timeouts in 2/7 and 3/7 can make ceph_sync_fs() return while
requests are still outstanding. syncfs() can report the error, but
global sync() ignores the sync_fs return value. It can therefore return
normally while an unsafe metadata request is still waiting for its safe
reply. Both paths call sync_fs with wait=1, so returning an error from
that callback is not enough for global sync(). Please preserve global
sync's completion guarantee when adding these timeouts.

The default timeout in 5/7 also applies to the interrupt request for a
blocking lock. On the v2 base, if the MDS has already granted the lock,
the interrupt does not remove that grant. If the grant reply is delayed
and the interrupt request times out, the syscall can return an error
without installing the granted lock locally. The MDS can still hold the
lock and block other clients. The underlying grant-versus-interrupt race
predates this series; the default timeout adds another way to return
before the replies arrive. Please exclude interrupt requests from the
new default timeout.

Thanks,
Alex