[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <b7f35443-3b8f-4c42-9583-9944b50ef3fc@oracle.com>
Date: Thu, 11 Apr 2024 09:15:04 +0100
From: John Garry <john.g.garry@...cle.com>
To: Luis Chamberlain <mcgrof@...nel.org>, Randy Dunlap <rdunlap@...radead.org>
Cc: axboe@...nel.dk, kbusch@...nel.org, hch@....de, sagi@...mberg.me,
jejb@...ux.ibm.com, martin.petersen@...cle.com, djwong@...nel.org,
viro@...iv.linux.org.uk, brauner@...nel.org, dchinner@...hat.com,
jack@...e.cz, linux-block@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-nvme@...ts.infradead.org,
linux-fsdevel@...r.kernel.org, tytso@....edu, jbongio@...gle.com,
linux-scsi@...r.kernel.org, ojaswin@...ux.ibm.com, linux-aio@...ck.org,
linux-btrfs@...r.kernel.org, io-uring@...r.kernel.org,
nilay@...ux.ibm.com, ritesh.list@...il.com, willy@...radead.org,
Himanshu Madhani <himanshu.madhani@...cle.com>
Subject: Re: [PATCH v6 05/10] block: Add core atomic write support
On 11/04/2024 00:34, Luis Chamberlain wrote:
>> On 3/26/24 06:38, John Garry wrote:
>>> diff --git a/Documentation/ABI/stable/sysfs-block b/Documentation/ABI/stable/sysfs-block
>>> index 1fe9a553c37b..4c775f4bdefe 100644
>>> --- a/Documentation/ABI/stable/sysfs-block
>>> +++ b/Documentation/ABI/stable/sysfs-block
>>> +What: /sys/block/<disk>/atomic_write_boundary_bytes
>>> +Date: February 2024
>>> +Contact: Himanshu Madhani<himanshu.madhani@...cle.com>
>>> +Description:
>>> + [RO] A device may need to internally split I/Os which
>>> + straddle a given logical block address boundary. In that
>>> + case a single atomic write operation will be processed as
>>> + one of more sub-operations which each complete atomically.
>> or
> If*or* was meant, wouldn't it be better just to say one or more
> operations may be processed as one atomically in this situation?
"Or" was meant (thanks Randy).
I think that we just need to say that the write operation will not
complete atomically if it straddles the boundary. Whether the separate
parts of the write operation which straddle the boundary complete
atomically is undefined and irrelevant.
Thanks,
John
Powered by blists - more mailing lists