mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 12:11:26 +00:00
qla2x00t-32gbit: Use list_move_tail() instead of list_del()/list_add_tail()
Using list_move_tail() instead of list_del() + list_add_tail(). Link: https://lore.kernel.org/r/20210609072321.1356896-1-libaokun1@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com> Signed-off-by: Baokun Li <libaokun1@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> [ commit b6e7fba0c9ccba96198762b1b51559543466de03 upstream ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9521 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -5549,8 +5549,7 @@ qlt_free_qfull_cmds(struct qla_qpair *qpair)
|
||||
"%s: Unexpected cmd in QFull list %p\n", __func__,
|
||||
cmd);
|
||||
|
||||
list_del(&cmd->cmd_list);
|
||||
list_add_tail(&cmd->cmd_list, &free_list);
|
||||
list_move_tail(&cmd->cmd_list, &free_list);
|
||||
|
||||
/* piggy back on hardware_lock for protection */
|
||||
vha->hw->tgt.num_qfull_cmds_alloc--;
|
||||
|
||||
Reference in New Issue
Block a user