aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/basic/docproc.c
diff options
context:
space:
mode:
authorDamien Le Moal <[email protected]>2025-10-27 00:27:33 +0000
committerJens Axboe <[email protected]>2025-10-28 13:52:55 +0000
commit19de03b312d69a7e9bacb51c806c6e3f4207376c (patch)
tree2be8d8cf7bf946017270f99a856a77eb79339c7a /scripts/basic/docproc.c
parentblock: fix op_is_zone_mgmt() to handle REQ_OP_ZONE_RESET_ALL (diff)
downloadkernel-19de03b312d69a7e9bacb51c806c6e3f4207376c.tar.gz
kernel-19de03b312d69a7e9bacb51c806c6e3f4207376c.zip
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: 6c1b1da58f8c ("block: add zone open, close and finish operations") Cc: [email protected] Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Chaitanya Kulkarni <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions