[SCSI] esp, scsi_tgt_lib, fcoe: use list_move() instead of list_del()/list_add() combination
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
committed by
James Bottomley
parent
38b34aca30
commit
63ce249994
@@ -275,10 +275,8 @@ void scsi_tgt_free_queue(struct Scsi_Host *shost)
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(qdata->cmd_hash); i++) {
|
||||
list_for_each_entry_safe(tcmd, n, &qdata->cmd_hash[i],
|
||||
hash_list) {
|
||||
list_del(&tcmd->hash_list);
|
||||
list_add(&tcmd->hash_list, &cmds);
|
||||
}
|
||||
hash_list)
|
||||
list_move(&tcmd->hash_list, &cmds);
|
||||
}
|
||||
|
||||
spin_unlock_irqrestore(&qdata->cmd_hash_lock, flags);
|
||||
|
Reference in New Issue
Block a user