From: Alex Markuze <amarkuze@redhat.com>
To: Xiubo Li <xiubo.li@clyso.com>
Cc: Ilya Dryomov <idryomov@gmail.com>,
Viacheslav Dubeyko <slava@dubeyko.com>,
ceph-devel@vger.kernel.org, linux-kernel@vger.kernel.org,
Anthony D'Atri <anthony.datri@gmail.com>
Subject: Re: [PATCH v2 0/2] ceph: serialize O_APPEND writes across clients
Date: Mon, 30 Nov 2026 16:54:33 +0000 [thread overview]
Message-ID: <20261130165433.97991-1-amarkuze@redhat.com> (raw)
In-Reply-To: <20261126-ceph-append-excl-v2-0-e8707d123d77@clyso.com>
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
prev parent reply other threads:[~2026-11-30 16:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 6:50 Xiubo Li via B4 Relay
2026-11-26 6:50 ` [PATCH v2 1/2] ceph: send the cap messages of an inode in the order they were prepared Xiubo Li via B4 Relay
2026-11-26 6:50 ` [PATCH v2 2/2] ceph: serialize O_APPEND writes across clients on Fx Xiubo Li via B4 Relay
2026-11-30 16:54 ` Alex Markuze [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130165433.97991-1-amarkuze@redhat.com \
--to=amarkuze@redhat.com \
--cc=anthony.datri@gmail.com \
--cc=ceph-devel@vger.kernel.org \
--cc=idryomov@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=slava@dubeyko.com \
--cc=xiubo.li@clyso.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®