Skip to content

Commit

Permalink
target: Fix bidi command handling
Browse files Browse the repository at this point in the history
The function transport_complete_qf() must call either
queue_data_in() or queue_status() but not both.

Signed-off-by: Bart Van Assche <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
  • Loading branch information
Bart Van Assche authored and Nicholas Bellinger committed May 15, 2015
1 parent 8ee83a7 commit 63509c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/target/target_core_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 63509c6

Please sign in to comment.