Files
linux-stable-mirror/include/linux
Damien Le Moal c5279b8c91 block: fix op_is_zone_mgmt() to handle REQ_OP_ZONE_RESET_ALL
commit 12a1c9353c upstream.

REQ_OP_ZONE_RESET_ALL is a zone management request. Fix
op_is_zone_mgmt() to return true for that operation, like it already
does for REQ_OP_ZONE_RESET.

While no problems were reported without this fix, this change allows
strengthening checks in various block device drivers (scsi sd,
virtioblk, DM) where op_is_zone_mgmt() is used to verify that a zone
management command is not being issued to a regular block 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-12-07 06:09:14 +09:00
..
2025-09-11 17:17:17 +02:00
2025-07-10 15:57:42 +02:00
2025-10-29 14:03:11 +01:00
2025-06-04 14:38:07 +02:00
2025-08-28 16:24:06 +02:00
2025-04-10 14:31:55 +02:00
2025-02-01 18:23:59 +01:00
2025-06-04 14:38:08 +02:00
2025-08-28 16:24:13 +02:00