mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
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:
parent
658f18d1b8
commit
980b3271d1
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue