linux/include
Damien Le Moal 19de03b312 block: make REQ_OP_ZONE_OPEN a write operation
A REQ_OP_OPEN_ZONE request changes the condition of a sequential zone of
a zoned block device to the explicitly open condition
(BLK_ZONE_COND_EXP_OPEN). As such, it should be considered a write
operation.

Change this operation code to be an odd number to reflect this. The
following operation numbers are changed to keep the numbering compact.

No problems were reported without this change as this operation has no
data. However, this unifies the zone operation to reflect that they
modify the device state and also allows strengthening checks in the
block layer, e.g. checking if this operation is not issued against a
read-only device.

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: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2025-10-28 07:52:55 -06:00
..
acpi Merge branches 'acpi-scan', 'acpi-processor' and 'acpi-sysfs' 2025-09-29 15:12:52 +02:00
asm-generic Kbuild updates for 6.18 2025-10-01 20:58:51 -07:00
clocksource clocksource/drivers/arm_arch_timer_mmio: Switch over to standalone driver 2025-09-23 12:31:50 +02:00
crypto Optimize fsverity with 2-way interleaved hashing 2025-09-29 15:55:20 -07:00
cxl
drm drm/gpuvm: fix various typos in .c and .h gpuvm file 2025-08-25 21:48:50 +02:00
dt-bindings soc: driver updates for 6.18 2025-10-01 17:32:51 -07:00
hyperv
keys
kunit linux_kselftest-kunit-6.18-rc1 2025-10-01 19:15:11 -07:00
kvm KVM: arm64: vgic-v3: Erase LPIs from xarray outside of raw spinlocks 2025-09-10 02:56:20 -07:00
linux block: make REQ_OP_ZONE_OPEN a write operation 2025-10-28 07:52:55 -06:00
math-emu
media
memory
misc
net bpf-next-6.18 2025-09-30 17:58:11 -07:00
pcmcia pcmcia: remove PCCARD_IODYN 2025-08-16 15:37:47 +02:00
ras
rdma
rv kernel-6.18-rc1.clone3 2025-09-29 10:36:50 -07:00
scsi scsi: switch ->bios_param() to passing gendisk 2025-08-13 02:59:28 -04:00
soc ARM: soc updates for 6.18 2025-10-01 17:41:15 -07:00
sound More minor SDCA bug fixes 2025-09-04 19:31:51 +01:00
target
trace for-6.18/io_uring-20250929 2025-10-02 09:56:23 -07:00
uapi for-6.18/io_uring-20250929 2025-10-02 09:56:23 -07:00
ufs
vdso Updates for the VDSO subsystem: 2025-09-30 16:58:21 -07:00
video
xen xen: replace XENFEAT_auto_translated_physmap with xen_pv_domain() 2025-09-08 17:01:36 +02:00
Kbuild