]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: target: Remove incorrect zero blocks WRITE_SAME check
authorMike Christie <michael.christie@oracle.com>
Tue, 28 Jun 2022 20:02:26 +0000 (15:02 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 7 Jul 2022 20:53:52 +0000 (16:53 -0400)
commitc34492dfeb1710f6840fd2fc4f431278ea4f7294
tree81538e3d31aa45054d46cc41169df3d37144e25e
parent252377144bff729cbd93bf5d195155f182a037ae
scsi: target: Remove incorrect zero blocks WRITE_SAME check

We use WSNZ=1 so if we get a WRITE_SAME with zero logical blocks we are
supposed to fail it. We do this check and failure in target_core_sbc.c
before calling into the backend, so we can remove the incorrect check in
target_core_file.

Link: https://lore.kernel.org/r/20220628200230.15052-2-michael.christie@oracle.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_file.c