From: Damien Le Moal <dlemoal@kernel.org>
To: Bart Van Assche <bvanassche@acm.org>,
linux-block@vger.kernel.org, Jens Axboe <axboe@kernel.dk>,
dm-devel@lists.linux.dev, Mike Snitzer <snitzer@kernel.org>,
Mikulas Patocka <mpatocka@redhat.com>
Subject: Re: [PATCH v3 1/5] block: Make REQ_OP_ZONE_FINISH a write operation
Date: Thu, 26 Jun 2025 08:36:30 +0900 [thread overview]
Message-ID: <d0ae85c4-8fd7-49e2-96b1-a08f01154cf2@kernel.org> (raw)
In-Reply-To: <3f292307-30ac-442c-a694-5fc3560036a4@acm.org>
On 6/26/25 01:29, Bart Van Assche wrote:
> On 6/25/25 2:33 AM, Damien Le Moal wrote:
>> diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
>> index 3d1577f07c1c..930daff207df 100644
>> --- a/include/linux/blk_types.h
>> +++ b/include/linux/blk_types.h
>> @@ -350,11 +350,11 @@ enum req_op {
>> /* Close a zone */
>> REQ_OP_ZONE_CLOSE = (__force blk_opf_t)11,
>> /* Transition a zone to full */
>> - REQ_OP_ZONE_FINISH = (__force blk_opf_t)12,
>> + REQ_OP_ZONE_FINISH = (__force blk_opf_t)13,
>> /* reset a zone write pointer */
>> - REQ_OP_ZONE_RESET = (__force blk_opf_t)13,
>> + REQ_OP_ZONE_RESET = (__force blk_opf_t)15,
>> /* reset all the zone present on the device */
>> - REQ_OP_ZONE_RESET_ALL = (__force blk_opf_t)15,
>> + REQ_OP_ZONE_RESET_ALL = (__force blk_opf_t)17,
>>
>> /* Driver private requests */
>> REQ_OP_DRV_IN = (__force blk_opf_t)34,
>
> Since we are renumbering operation types, how about also
> renumbering REQ_OP_ZONE_OPEN and/or REQ_OP_ZONE_CLOSE? Neither operation
> modifies data on the storage medium nor any write pointers so these
> operations shouldn't be considered as write operations, isn't it?
Open and close change the zone condition and act on the drive count of
explicitly open zone resources which impacts the ability to write to zones. So I
would rather consider these also write operations given the changes they imply.
--
Damien Le Moal
Western Digital Research
next prev parent reply other threads:[~2025-06-25 23:36 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-25 9:33 [PATCH v3 0/5] Fix write operation handling for zoned DM devices Damien Le Moal
2025-06-25 9:33 ` [PATCH v3 1/5] block: Make REQ_OP_ZONE_FINISH a write operation Damien Le Moal
2025-06-25 11:28 ` Christoph Hellwig
2025-06-25 11:42 ` Johannes Thumshirn
2025-06-25 15:44 ` Bart Van Assche
2025-06-25 16:29 ` Bart Van Assche
2025-06-25 23:36 ` Damien Le Moal [this message]
2025-06-26 20:29 ` Bart Van Assche
2025-06-25 9:33 ` [PATCH v3 2/5] block: Introduce bio_needs_zone_write_plugging() Damien Le Moal
2025-06-25 11:28 ` Christoph Hellwig
2025-06-25 11:47 ` Johannes Thumshirn
2025-06-25 15:48 ` Bart Van Assche
2025-06-25 23:38 ` Damien Le Moal
2025-06-26 16:37 ` Bart Van Assche
2025-06-25 9:33 ` [PATCH v3 3/5] dm: Always split write BIOs to zoned device limits Damien Le Moal
2025-06-25 11:49 ` Johannes Thumshirn
2025-06-25 16:30 ` Mikulas Patocka
2025-06-25 16:34 ` Bart Van Assche
2025-06-25 23:41 ` Damien Le Moal
2025-06-25 9:33 ` [PATCH v3 4/5] dm: dm-crypt: Do not partially accept write BIOs with zoned targets Damien Le Moal
2025-06-25 16:31 ` Mikulas Patocka
2025-06-25 16:42 ` Bart Van Assche
2025-06-25 9:33 ` [PATCH v3 5/5] dm: Check for forbidden splitting of zone write operations Damien Le Moal
2025-06-25 16:31 ` Mikulas Patocka
2025-06-25 16:37 ` [PATCH v3 0/5] Fix write operation handling for zoned DM devices Jens Axboe
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=d0ae85c4-8fd7-49e2-96b1-a08f01154cf2@kernel.org \
--to=dlemoal@kernel.org \
--cc=axboe@kernel.dk \
--cc=bvanassche@acm.org \
--cc=dm-devel@lists.linux.dev \
--cc=linux-block@vger.kernel.org \
--cc=mpatocka@redhat.com \
--cc=snitzer@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