mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Cc: Hannes Reinecke <[email protected]> Cc: Martin Petersen <[email protected]> Cc: Chris Mason <[email protected]> Cc: James Bottomley <[email protected]> Cc: Nicholas Bellinger <[email protected]> Signed-off-by: Nicholas Bellinger <[email protected]>
This commit is contained in:
parent
a82a9538dd
commit
6457740708
1 changed files with 2 additions and 2 deletions
|
|
@ -1832,7 +1832,7 @@ static void transport_complete_qf(struct se_cmd *cmd)
|
|||
ret = cmd->se_tfo->queue_data_in(cmd);
|
||||
break;
|
||||
case DMA_TO_DEVICE:
|
||||
if (cmd->t_bidi_data_sg) {
|
||||
if (cmd->se_cmd_flags & SCF_BIDI) {
|
||||
ret = cmd->se_tfo->queue_data_in(cmd);
|
||||
if (ret < 0)
|
||||
break;
|
||||
|
|
@ -1947,7 +1947,7 @@ static void target_complete_ok_work(struct work_struct *work)
|
|||
/*
|
||||
* Check if we need to send READ payload for BIDI-COMMAND
|
||||
*/
|
||||
if (cmd->t_bidi_data_sg) {
|
||||
if (cmd->se_cmd_flags & SCF_BIDI) {
|
||||
spin_lock(&cmd->se_lun->lun_sep_lock);
|
||||
if (cmd->se_lun->lun_sep) {
|
||||
cmd->se_lun->lun_sep->sep_stats.tx_data_octets +=
|
||||
|
|
|
|||
Loading…
Reference in a new issue