From: Dave Chinner <dgc@kernel.org>
To: Wayne Gao <Wayne.Gao1@solidigm.com>
Cc: "cem@kernel.org" <cem@kernel.org>,
"linux-xfs@vger.kernel.org" <linux-xfs@vger.kernel.org>,
"linux-api@vger.kernel.org" <linux-api@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [RFC PATCH] xfs: add a per-filesystem switch to force atomic CoW
Date: Tue, 24 Nov 2026 07:11:00 +1100 [thread overview]
Message-ID: <awSd1JEB0F4WeKt0@dread> (raw)
In-Reply-To: <LV0PR10MB997684D5CA8A6AC037F6D1CD8AB9472@LV0PR10MB997684.namprd10.prod.outlook.com>
On Sat, Nov 21, 2026 at 03:47:32PM +0000, Wayne Gao wrote:
>
>
> Hardware-capable devices normally prefer hardware atomic writes, making
> it difficult to exercise the software CoW path deterministically without
> changing file layouts or affecting ordinary writes.
Why would we want to do this at runtime on production systems?
....
> The intended use is a controlled comparison of hardware-backed and
> software-backed RWF_ATOMIC writes on the same hardware, without having
> to construct misaligned mappings to trigger fallback. The existing
> DEBUG-only always_cow control also affects ordinary writes, which
> changes the workload being compared.
Ok, so you want it for your test/dev environment, not production?
I thought we could already change the block device characteristics (i.e. support hw
atomic wirite or not) at the block device level? If so, why do we
need this at the fs level? If not, why isn't it the hardware atomic
write behaviour configurable at the bdev level?
i.e. I don't understand why 'unmount; change bdev setting; mount' is
the obvious answer for back-to-back behavioural characterisation on
the same hardware and filesystem with different configurations?
Cheers,
Dave.
--
Dave Chinner
dgc@kernel.org
prev parent reply other threads:[~2026-11-23 20:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-21 15:47 Wayne Gao
2026-11-23 11:44 ` John Garry
2026-11-23 13:42 ` Pankaj Raghav (Samsung)
2026-11-23 20:11 ` Dave Chinner [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=awSd1JEB0F4WeKt0@dread \
--to=dgc@kernel.org \
--cc=Wayne.Gao1@solidigm.com \
--cc=cem@kernel.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-xfs@vger.kernel.org \
/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®