]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_debug: invalidate protection info for unmapped region
authorAkinobu Mita <akinobu.mita@gmail.com>
Sat, 29 Jun 2013 08:59:17 +0000 (17:59 +0900)
committerJames Bottomley <JBottomley@Parallels.com>
Tue, 9 Jul 2013 08:24:25 +0000 (09:24 +0100)
commit308689401f4d0562cf2b62e6660ad1482d412cb2
tree2d1fbe3341b66fe39e57c49d5c562cadaddc3f4c
parent8cd1521ef4b31a2fc806fab2063a6b8713453ee8
[SCSI] scsi_debug: invalidate protection info for unmapped region

When UNMAP command is issued with the data integrity support enabled,
the protection info for the unmapped region is remain unchanged.
So READ command for the region later on causes data integrity failure.

This fixes it by invalidating protection info for the unmapped region
by filling with 0xff pattern.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Acked-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/scsi_debug.c