Re: [PATCH 0/2] ceph: serialize O_APPEND writes across clients

From: Alex Markuze

Date: Sun Nov 22 2026 - 13:26:10 EST


Hi Xiubo,

The feature check happens once before ceph_get_append_caps(). If an
append starts waiting on an MDS that supports APPEND_EXCL and the auth
cap migrates to an MDS without that feature, ceph_append_kick() keeps
asking for Fx. With another writer active, the older MDS can stay in MIX
and grant Fw without Fx, so the append keeps waiting while holding
i_rwsem.

Could the waiter recheck the current auth session's features and fall
back to the existing Fw-only path once an open session is known not to
support APPEND_EXCL? That would preserve the existing older-MDS behavior
instead of leaving the write waiting after migration.

Thanks,
Alex