Re: [PATCH v2 0/2] scsi: scsi_debug: fix zone reset with virtual_gb and DIX

From: Damien Le Moal

Date: Mon Nov 16 2026 - 16:42:17 EST


On 11/16/26 13:06, Tal Zussman wrote:
> Resetting a written zone on scsi_debug zeroes the zone's blocks in the
> store, but does so with a raw offset that doesn't wrap around the store
> like writes do, and without resetting the blocks' protection
> information. With virtual_gb set, resetting a zone that starts past the
> end of the store oopses. With DIX enabled, a reset zone can't be read
> back. The first patch makes the reset wrap around the end of the store
> like writes do. The second resets the protection information of the
> zeroed blocks.

Looks OK.

Reviewed-by: Damien Le Moal <dlemoal@xxxxxxxxxx>


--
Damien Le Moal
Western Digital Research