The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: John Garry <john.garry@linux.dev>
To: Dave Chinner <dgc@kernel.org>, 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 08:32:56 +0000	[thread overview]
Message-ID: <2a615ca6-3777-4b71-bea6-4072d4fbd950@linux.dev> (raw)
In-Reply-To: <awSd1JEB0F4WeKt0@dread>

On 11/23/26 20:11, Dave Chinner wrote:
>> 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?

The block layer just accepts whatever atomic properties is reported by 
the block driver and there is no method in the block layer to change 
these limits or turn them off.

Then for the only block drivers which today support atomic - NVMe and 
SCSI - similarly these we just use the atomic limits reported in the disk.

> 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?
> 
Thanks,
John

      reply	other threads:[~2026-11-24  8:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-21 15:47 [RFC PATCH] xfs: add a per-filesystem switch to force atomic CoW Wayne Gao
2026-11-23 11:44 ` John Garry
2026-11-23 13:42   ` Pankaj Raghav (Samsung)
2026-11-23 20:11 ` Dave Chinner
2026-11-24  8:32   ` John Garry [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=2a615ca6-3777-4b71-bea6-4072d4fbd950@linux.dev \
    --to=john.garry@linux.dev \
    --cc=Wayne.Gao1@solidigm.com \
    --cc=cem@kernel.org \
    --cc=dgc@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