Re: [PATCH v2 0/2] ceph: serialize O_APPEND writes across clients
From: Alex Markuze
Date: Mon Nov 30 2026 - 11:54:44 EST
Hi Xiubo,
Thanks for adding the fallback when the auth MDS doesn't support
APPEND_EXCL.
In patch 1, if allocation of a size-bearing cap flush fails,
__send_cap() advances the ticket without queuing the update. A later
cap release can then reach the MDS before the size update, so the
next appender can get the old EOF. Please keep the release behind the
size update on allocation failure too.
In patch 2, if the MDS revokes Fx before the waiting appender takes
its references, try_flush_caps() and flush replay can acknowledge the
revoke even though ceph_check_caps() would preserve the reserved turn.
The appender then has to request another turn. Please make both flush
paths honor the reservation while still allowing the appender to yield.
Requiring Fx can also make the appender wait when Fw is already
available. If EOF advances during that wait, the write can exceed
RLIMIT_FSIZE because the VFS check used the old offset. The old EOF
adjustment had the same omission. Please enforce the VFS write limits
against the final append position and count before submitting the write.
Thanks,
Alex