Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 63509c60 authored by Bart Van Assche's avatar Bart Van Assche Committed by Nicholas Bellinger
Browse files

target: Fix bidi command handling



The function transport_complete_qf() must call either
queue_data_in() or queue_status() but not both.

Signed-off-by: default avatarBart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
parent 8ee83a74
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1957,7 +1957,6 @@ static void transport_complete_qf(struct se_cmd *cmd)
	case DMA_TO_DEVICE:
		if (cmd->se_cmd_flags & SCF_BIDI) {
			ret = cmd->se_tfo->queue_data_in(cmd);
			if (ret < 0)
			break;
		}
		/* Fall through for DMA_TO_DEVICE */