提交 980b3271 编写于 作者: W Wei Yongjun 提交者: Martin K. Petersen

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: NWei Yongjun <weiyj.lk@gmail.com>
Reviewed-by: NTyrel Datwyler <tyreld@linux.vnet.ibm.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 658f18d1
...@@ -3697,8 +3697,7 @@ static void ibmvscsis_release_cmd(struct se_cmd *se_cmd) ...@@ -3697,8 +3697,7 @@ static void ibmvscsis_release_cmd(struct se_cmd *se_cmd)
spin_lock_bh(&vscsi->intr_lock); spin_lock_bh(&vscsi->intr_lock);
/* Remove from active_q */ /* Remove from active_q */
list_del(&cmd->list); list_move_tail(&cmd->list, &vscsi->waiting_rsp);
list_add_tail(&cmd->list, &vscsi->waiting_rsp);
ibmvscsis_send_messages(vscsi); ibmvscsis_send_messages(vscsi);
spin_unlock_bh(&vscsi->intr_lock); spin_unlock_bh(&vscsi->intr_lock);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册