Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

scsi: qla2xxx: 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>

authored by

Baokun Li and committed by
Martin K. Petersen
b6e7fba0 de48898d

+1 -2
+1 -2
drivers/scsi/qla2xxx/qla_target.c
··· 5479 5479 "%s: Unexpected cmd in QFull list %p\n", __func__, 5480 5480 cmd); 5481 5481 5482 - list_del(&cmd->cmd_list); 5483 - list_add_tail(&cmd->cmd_list, &free_list); 5482 + list_move_tail(&cmd->cmd_list, &free_list); 5484 5483 5485 5484 /* piggy back on hardware_lock for protection */ 5486 5485 vha->hw->tgt.num_qfull_cmds_alloc--;