Skip to content

Commit 036d890

Browse files
mikechristiemartinkpetersen
authored andcommitted
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>
1 parent d29ea7b commit 036d890

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/target/target_core_file.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,6 @@ fd_execute_write_same(struct se_cmd *cmd)
438438
unsigned int len = 0, i;
439439
ssize_t ret;
440440

441-
if (!nolb) {
442-
target_complete_cmd(cmd, SAM_STAT_GOOD);
443-
return 0;
444-
}
445441
if (cmd->prot_op) {
446442
pr_err("WRITE_SAME: Protection information with FILEIO"
447443
" backends not supported\n");

0 commit comments

Comments
 (0)