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
Subject: Re: [PATCH] ceph: only check the caps of a clean file early after its last close
Date: Wed, 2 Dec 2026 12:00:22 +0000 [thread overview]
Message-ID: <20261202120022.538690-1-amarkuze@redhat.com> (raw)
In-Reply-To: <20261201-ceph-cap-idle-release-clean-only-v1-1-f4bb68a744db@clyso.com>
Hi Xiubo,
If data writeback finishes shortly after the last close, the completion
check can run while the recently used write caps are still wanted. The
new guard has already skipped the idle check. A second client opening
before the wanted interval expires can leave the MDS in MIX beyond the
time the old idle check would have run.
In MIX, a non-lazy MAP_SHARED fault can dirty a folio with Fw but without
Fb. A third client can then complete a write to a different part of the
same folio, and the mapped client's later whole-folio writeback can
overwrite that write. This is possible without this patch too; skipping
the idle check can extend the window.
The CephFS POSIX documentation describes a cache-coherency limitation
when a file is mapped on multiple hosts. Does that limitation also cover
this case, with one mapped host and a separate ordinary writer whose
completed, disjoint write can later be overwritten?
Thanks,
Alex
prev parent reply other threads:[~2026-12-02 12:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 0:48 Xiubo Li via B4 Relay
2026-12-02 12:00 ` 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=20261202120022.538690-1-amarkuze@redhat.com \
--to=amarkuze@redhat.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®