Files
linux-stable-mirror/include/linux
Damien Le Moal a39791e479 block: Make REQ_OP_ZONE_FINISH a write operation
[ Upstream commit 3f66ccbaae ]

REQ_OP_ZONE_FINISH is defined as "12", which makes
op_is_write(REQ_OP_ZONE_FINISH) return false, despite the fact that a
zone finish operation is an operation that modifies a zone (transition
it to full) and so should be considered as a write operation (albeit
one that does not transfer any data to the device).

Fix this by redefining REQ_OP_ZONE_FINISH to be an odd number (13), and
redefine REQ_OP_ZONE_RESET and REQ_OP_ZONE_RESET_ALL using sequential
odd numbers from that new value.

Fixes: 6c1b1da58f ("block: add zone open, close and finish operations")
Cc: stable@vger.kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20250625093327.548866-2-dlemoal@kernel.org
Signed-off-by: Jens Axboe <axboe@kernel.dk>
[ More renumbering... ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:24:31 +02:00
..
2024-01-25 14:52:51 -08:00
2024-07-05 09:14:50 +02:00
2023-12-20 15:17:37 +01:00
2024-12-14 19:51:34 +01:00
2024-04-10 16:19:07 +02:00
2025-07-10 15:57:42 +02:00
2024-04-10 16:18:55 +02:00
2024-01-25 14:52:33 -08:00
2025-06-04 14:38:07 +02:00
2025-08-28 16:24:06 +02:00
2024-06-16 13:39:27 +02:00
2025-04-10 14:31:55 +02:00
2023-11-28 16:56:21 +00:00
2023-10-19 23:05:33 +02:00
2023-10-19 23:05:33 +02:00
2025-02-01 18:23:59 +01:00
2025-04-10 14:31:49 +02:00
2023-12-13 18:36:35 +01:00
2025-06-04 14:38:08 +02:00
2024-10-17 15:11:06 +02:00
2025-08-28 16:24:13 +02:00