diff options
author | Bart Van Assche <bart.vanassche@sandisk.com> | 2015-05-13 09:17:54 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-14 21:13:31 -0700 |
commit | 63509c60bbc62120fb0e3b287c86ac036b893d90 (patch) | |
tree | d4c6177bd2cc03fbb94b8fb4c981795f68d7f2dd /drivers | |
parent | 8ee83a747ac2309934c229281dda8f26648ec462 (diff) | |
download | linux-63509c60bbc62120fb0e3b287c86ac036b893d90.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/target/target_core_transport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 3fe5cb240b6f..99a38cf320ff 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c @@ -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: |