mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Daniel Gomez <da.gomez@kernel.org>
To: Arthur Simchaev <arthur.simchaev@sandisk.com>
Cc: Jens Axboe <axboe@kernel.dk>, Keith Busch <kbusch@kernel.org>,
	Christoph Hellwig <hch@lst.de>, Sagi Grimberg <sagi@grimberg.me>,
	linux-block@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-nvme@lists.infradead.org,
	Andres Freund <andres@anarazel.de>,
	Pankaj Raghav <pankaj.raghav@linux.dev>,
	GOST <gost.dev@samsung.com>, Daniel Gomez <da.gomez@samsung.com>,
	Avi.Shchislowski@sandisk.com, Alex.Lemberg@sandisk.com
Subject: Re: [PATCH RFC 1/2] block: add BLK_FEAT_ATOMIC_WRITE_MULTI
Date: Fri, 13 Nov 2026 11:30:34 +0100	[thread overview]
Message-ID: <20261113103711.1-da.gomez@kernel.org> (raw)
In-Reply-To: <20261103093849.203851-1-arthur.simchaev@sandisk.com>



On 2026-11-03T11:38:49+02:00, Arthur Simchaev <arthur.simchaev@sandisk.com> wrote:
> On Tue, Sep 29, 2026 at 01:17:11PM +0200, Daniel Gomez wrote:
> [...]
> > diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
> > index d003a9d2d1f6c..92efd4ff67f26 100644
> > --- a/include/linux/blkdev.h
> > +++ b/include/linux/blkdev.h
> > @@ -360,6 +360,9 @@ typedef unsigned int __bitwise blk_features_t;
> >  #define BLK_FEAT_RAID_PARTIAL_STRIPES_EXPENSIVE \
> >  	((__force blk_features_t)(1u << 15))
> >  
> > +/* device writes each atomic write boundary window of a command atomically */
> > +#define BLK_FEAT_ATOMIC_WRITE_MULTI	((__force blk_features_t)(1u << 16))
>
> With this flag set, a request with REQ_ATOMIC may now carry several independent
> atomic writes rather than one. Code that looks at REQ_ATOMIC on a request (e.g.
> blk_insert_cloned_request(), or a future SCSI WRITE ATOMIC user) needs to know
> that. Could the comment here (or Documentation/block/) spell out what REQ_ATOMIC
> means on a merged request, and what a driver must guarantee before setting the
> flag?

Makes sense. I'll update accordingly on both places.

>
> It might also be useful to expose the feature in sysfs next to the other
> atomic_write_* attributes, so users can tell whether merging across boundaries
> is active on a device.

TBH, I was initially hesitant with the idea of adding another attribute.
I'll add it and if we find it not useful we can drop it during review
time.



  reply	other threads:[~2026-11-13 10:30 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-29 11:17 [PATCH RFC 0/2] Support for Multiple Atomicity Mode Daniel Gomez
2026-09-29 11:17 ` [PATCH RFC 1/2] block: add BLK_FEAT_ATOMIC_WRITE_MULTI Daniel Gomez
2026-11-03  9:38   ` Arthur Simchaev
2026-11-13 10:30     ` Daniel Gomez [this message]
2026-09-29 11:17 ` [PATCH RFC 2/2] nvme: enable multiple atomicity mode Daniel Gomez
2026-11-03  9:38   ` Arthur Simchaev
2026-11-13 10:31     ` Daniel Gomez
2026-11-03  9:38 ` [PATCH RFC 0/2] Support for Multiple Atomicity Mode Arthur Simchaev
2026-11-13 10:31   ` Daniel Gomez

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=20261113103711.1-da.gomez@kernel.org \
    --to=da.gomez@kernel.org \
    --cc=Alex.Lemberg@sandisk.com \
    --cc=Avi.Shchislowski@sandisk.com \
    --cc=andres@anarazel.de \
    --cc=arthur.simchaev@sandisk.com \
    --cc=axboe@kernel.dk \
    --cc=da.gomez@samsung.com \
    --cc=gost.dev@samsung.com \
    --cc=hch@lst.de \
    --cc=kbusch@kernel.org \
    --cc=linux-block@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=pankaj.raghav@linux.dev \
    --cc=sagi@grimberg.me \
    /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®