mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 01:34:14 +08: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
@ -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 New Issue
Block a user