Repository navigation
Commit 9f540c7
scsi: scsi_debug: Zero clear zones at reset write pointer
[ Upstream commit 2d62253 ]
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: f0d1cf9 ("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>1 parent 725ba12 commit 9f540c7
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4628 | 4628 | | |
4629 | 4629 | | |
4630 | 4630 | | |
| 4631 | + | |
4631 | 4632 | | |
4632 | 4633 | | |
4633 | 4634 | | |
| |||
4639 | 4640 | | |
4640 | 4641 | | |
4641 | 4642 | | |
| 4643 | + | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
4642 | 4647 | | |
4643 | 4648 | | |
4644 | 4649 | | |
| |||
0 commit comments