[PATCH 1/2] block: add BLK_FEAT_ATOMIC_WRITE_MULTI

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Dec 3 11:19:34 PST 2026


Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Low] block: sysfs-block ABI doc for atomic_write_max_bytes misses
  multi mode
--

commit 933475a4987a9fdd84696702ee1bb3f36b7c3022
Author: Daniel Gomez <da.gomez at samsung.com>

block: add BLK_FEAT_ATOMIC_WRITE_MULTI

This commit adds the BLK_FEAT_ATOMIC_WRITE_MULTI queue feature flag and
exposes it via queue/atomic_write_multi in sysfs. When enabled, merged
REQ_ATOMIC requests are no longer limited at atomic_write_boundary_sectors
and may grow up to max(max_sectors, atomic_write_max_sectors).

> diff --git a/Documentation/ABI/stable/sysfs-block b/Documentation/ABI/stable/sysfs-block
> index 900b3fc4c72d0..19d9c250371f2 100644
> --- a/Documentation/ABI/stable/sysfs-block
> +++ b/Documentation/ABI/stable/sysfs-block
> @@ -72,7 +72,18 @@ Description:
>  		power-of-two and at least the size as in
>  		atomic_write_unit_max_bytes.
>  		Any attempt to merge atomic write I/Os must not result in a
> -		merged I/O which crosses this boundary (if any).
> +		merged I/O which crosses this boundary (if any), unless
> +		atomic_write_multi is 1.
> +
> +
> +What:		/sys/block/<disk>/queue/atomic_write_multi
> +Date:		November 2026
> +Contact:	Daniel Gomez <da.gomez at samsung.com>
> +Description:
> +		[RO] 1 if the device writes each atomic write boundary window
> +		of an I/O atomically. Contiguous atomic writes may then be
> +		merged across atomic_write_boundary_bytes. Each write remains
> +		atomic, but the merged I/O as a whole does not. 0 otherwise.

[Severity: Low]
Should the atomic_write_max_bytes entry earlier in
Documentation/ABI/stable/sysfs-block also be updated for
atomic_write_multi?

That entry still states unconditionally that "a merged atomic write
operation must not exceed this number of bytes", whereas
blk_queue_get_max_sectors() in block/blk.h now allows merged REQ_ATOMIC
requests up to max(max_sectors, atomic_write_max_sectors) when
BLK_FEAT_ATOMIC_WRITE_MULTI is set.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261203-nvme-mam-v1-0-edad0281b1f7@samsung.com?part=1



More information about the Linux-nvme mailing list