diff options
author | Nicholas Bellinger <nab@daterainc.com> | 2013-08-21 17:39:19 -0400 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2013-09-09 17:29:29 -0400 |
commit | 64577407085b7b117971f2bf35b0ef3ccd9c89f1 (patch) | |
tree | 35c7592f8f783f90b4f87856c7bc00e37d82f3a0 | |
parent | a82a9538dd30471e6428a2d55e91e986c439866b (diff) |
target: Convert se_cmd->t_bidi_data_sg checks to use SCF_BIDI
Stop keying off se_cmd->t_bidi_data_sg within transport_complete_qf()
+ target_complete_ok_work(), and just use SCF_BIDI instead.
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Martin Petersen <martin.petersen@oracle.com>
Cc: Chris Mason <chris.mason@fusionio.com>
Cc: James Bottomley <JBottomley@Parallels.com>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Nicholas Bellinger <nab@daterainc.com>
-rw-r--r-- | drivers/target/target_core_transport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c index 3d3dc97b34d9..781859e9d517 100644 --- a/drivers/target/target_core_transport.c +++ b/drivers/target/target_core_transport.c | |||
@@ -1832,7 +1832,7 @@ static void transport_complete_qf(struct se_cmd *cmd) | |||
1832 | ret = cmd->se_tfo->queue_data_in(cmd); | 1832 | ret = cmd->se_tfo->queue_data_in(cmd); |
1833 | break; | 1833 | break; |
1834 | case DMA_TO_DEVICE: | 1834 | case DMA_TO_DEVICE: |
1835 | if (cmd->t_bidi_data_sg) { | 1835 | if (cmd->se_cmd_flags & SCF_BIDI) { |
1836 | ret = cmd->se_tfo->queue_data_in(cmd); | 1836 | ret = cmd->se_tfo->queue_data_in(cmd); |
1837 | if (ret < 0) | 1837 | if (ret < 0) |
1838 | break; | 1838 | break; |
@@ -1947,7 +1947,7 @@ static void target_complete_ok_work(struct work_struct *work) | |||
1947 | /* | 1947 | /* |
1948 | * Check if we need to send READ payload for BIDI-COMMAND | 1948 | * Check if we need to send READ payload for BIDI-COMMAND |
1949 | */ | 1949 | */ |
1950 | if (cmd->t_bidi_data_sg) { | 1950 | if (cmd->se_cmd_flags & SCF_BIDI) { |
1951 | spin_lock(&cmd->se_lun->lun_sep_lock); | 1951 | spin_lock(&cmd->se_lun->lun_sep_lock); |
1952 | if (cmd->se_lun->lun_sep) { | 1952 | if (cmd->se_lun->lun_sep) { |
1953 | cmd->se_lun->lun_sep->sep_stats.tx_data_octets += | 1953 | cmd->se_lun->lun_sep->sep_stats.tx_data_octets += |