Skip to contentSkip to conversation

dmaengine: idxd: Use list_move_tail instead of list_del/list_add_tail

PATCH Applied Bixuan Cui 3 participants 3 messages Sep 8, 2021 – Oct 25, 2021

Subsystems (2)
lore
Share & tools
lore

Bixuan Cui

author
#0 lore raw

PATCH 1/1 dmaengine: idxd: Use list_move_tail instead of list_del/list_add_tail

Using list_move_tail() instead of list_del() + list_add_tail()

---
 drivers/dma/idxd/irq.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/dma/idxd/irq.c +1 -2
index ca88fa7a328e..79fcfc4883e4 100644
@@ -221,8 +221,7 @@ static void irq_process_work_list(struct idxd_irq_entry *irq_entry)
 
 	list_for_each_entry_safe(desc, n, &irq_entry->work_list, list) {
 		if (desc->completion->status) {
-			list_del(&desc->list);
-			list_add_tail(&desc->list, &flist);
+			list_move_tail(&desc->list, &flist);
 		}
 	}
 
Signature · 1 line
2.17.1
reviewer Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Bixuan Cui

Using list_move_tail() instead of list_del() + list_add_tail()

Thanks!

Quoted 18 lines
---
  drivers/dma/idxd/irq.c | 3 +--
  1 file changed, 1 insertion(+), 2 deletions(-)
drivers/dma/idxd/irq.c +1 -2
index ca88fa7a328e..79fcfc4883e4 100644
@@ -221,8 +221,7 @@ static void irq_process_work_list(struct idxd_irq_entry *irq_entry)
 
  	list_for_each_entry_safe(desc, n, &irq_entry->work_list, list) {
  		if (desc->completion->status) {
-			list_del(&desc->list);
-			list_add_tail(&desc->list, &flist);
+			list_move_tail(&desc->list, &flist);
  		}
  	}
 
maintainer Applied
#2 lore raw
In reply to Bixuan Cui
Quoted 1 line · Bixuan Cui

Using list_move_tail() instead of list_del() + list_add_tail()

Applied, thanks

Signature · 1 line
~Vinod