mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
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: Bart Van Assche <bart.vanassche@sandisk.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
8ee83a747a
commit
63509c60bb
@ -1957,8 +1957,7 @@ 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;
|
||||
break;
|
||||
}
|
||||
/* Fall through for DMA_TO_DEVICE */
|
||||
case DMA_NONE:
|
||||
|
Loading…
Reference in New Issue
Block a user