提交 036d8903 编写于 作者: M Mike Christie 提交者: Martin K. Petersen

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.comReviewed-by: NChristoph Hellwig <hch@lst.de>
Signed-off-by: NMike Christie <michael.christie@oracle.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 d29ea7b7
...@@ -438,10 +438,6 @@ fd_execute_write_same(struct se_cmd *cmd) ...@@ -438,10 +438,6 @@ fd_execute_write_same(struct se_cmd *cmd)
unsigned int len = 0, i; unsigned int len = 0, i;
ssize_t ret; ssize_t ret;
if (!nolb) {
target_complete_cmd(cmd, SAM_STAT_GOOD);
return 0;
}
if (cmd->prot_op) { if (cmd->prot_op) {
pr_err("WRITE_SAME: Protection information with FILEIO" pr_err("WRITE_SAME: Protection information with FILEIO"
" backends not supported\n"); " backends not supported\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册