Files
Shin'ichiro Kawasaki 8b3b9aaada scsi: scsi_debug: Zero clear zones at reset write pointer
[ Upstream commit 2d62253eb1 ]

When a reset is requested the position of the write pointer is updated but
the data in the corresponding zone is not cleared. Instead scsi_debug
returns any data written before the write pointer was reset. This is an
error and prevents using scsi_debug for stale page cache testing of the
BLKRESETZONE ioctl.

Zero written data in the zone when resetting the write pointer.

Link: https://lore.kernel.org/r/20211122061223.298890-1-shinichiro.kawasaki@wdc.com
Fixes: f0d1cf9378 ("scsi: scsi_debug: Add ZBC zone commands")
Reviewed-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-12-01 09:04:50 +01:00
..
2021-05-21 17:01:18 -04:00
…
2021-01-22 21:14:08 -05:00
2021-01-22 21:14:07 -05:00
…
…
…
…
…
…
…
…
2021-01-22 21:14:08 -05:00
2021-11-18 19:16:48 +01:00
…
2021-05-31 22:48:21 -04:00
…
…
…
…
2021-05-31 22:48:21 -04:00
…
…
2021-04-13 00:20:48 -04:00
…
…
…
…
…
…
…
…
2021-05-31 22:48:23 -04:00
…
2021-05-21 16:59:33 -04:00
…
…
2021-03-24 23:03:43 -04:00
…
…
…
…
…
…
2021-08-23 12:54:30 -06:00
2021-04-13 00:20:48 -04:00
…
…
2021-08-16 13:33:24 -04:00
…