scsi: ibmvscsis: Use list_move_tail instead of list_del/list_add_tail

Using list_move_tail() instead of list_del() + list_add_tail().

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Reviewed-by: Tyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Wei Yongjun 2016-07-22 14:03:46 +00:00 committed by Martin K. Petersen
parent 658f18d1b8
commit 980b3271d1

View File

@ -3697,8 +3697,7 @@ static void ibmvscsis_release_cmd(struct se_cmd *se_cmd)
spin_lock_bh(&vscsi->intr_lock);
/* Remove from active_q */
list_del(&cmd->list);
list_add_tail(&cmd->list, &vscsi->waiting_rsp);
list_move_tail(&cmd->list, &vscsi->waiting_rsp);
ibmvscsis_send_messages(vscsi);
spin_unlock_bh(&vscsi->intr_lock);
}