mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Dave Chinner <dgc@kernel.org>
To: John Garry <john.garry@linux.dev>
Cc: Wayne Gao <Wayne.Gao1@solidigm.com>,
	"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: Wed, 25 Nov 2026 07:05:20 +1100	[thread overview]
Message-ID: <awXuAESDkLr1nd3n@dread> (raw)
In-Reply-To: <2a615ca6-3777-4b71-bea6-4072d4fbd950@linux.dev>

On Tue, Nov 24, 2026 at 08:32:56AM +0000, John Garry wrote:
> 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.

Isn't that a bit of an oversight? Lots of the hardware related IO
capabilities are configurable in the bdev queue (e.g. max io sizes,
max discard/unmap sizes, max queue depth, etc).

Sure, they are initially populated by the hardware values, but the
user can then override them (e.g. via udev rules) and that means we
don't have need to add 'override the <bdev queue property>'
management interfaces to every filesystem that supports those
specific bdev hardware offloads.

> 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.

That seems to be inconsistent with how we manage other hardware
offload size limits on block devices. These are -not- filesystem
properties, and we should not be trying to manage them at the
filesystem level.

-Dave.
-- 
Dave Chinner
dgc@kernel.org

  parent reply	other threads:[~2026-11-24 20:05 UTC|newest]

Thread overview: 8+ 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
2026-11-24  8:32   ` John Garry
2026-11-24 17:19     ` Wayne Gao
2026-11-24 20:05     ` Dave Chinner [this message]
2026-11-24 17:16   ` Wayne Gao

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=awXuAESDkLr1nd3n@dread \
    --to=dgc@kernel.org \
    --cc=Wayne.Gao1@solidigm.com \
    --cc=cem@kernel.org \
    --cc=john.garry@linux.dev \
    --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®