Skip to contentSkip to conversation

[2.5] list_move_tail for network core (1 occ)

PATCH New Lightweight patch manager 1 participant 1 message Jun 9, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 [2.5] list_move_tail for network core (1 occ)

This uses the newly introduced list_move_tail macro in net/core/dev.c

net/core/dev.c +1 -2
@@ -1596,8 +1596,7 @@
 
 		if (dev->quota <= 0 || dev->poll(dev, &budget)) {
 			local_irq_disable();
-			list_del(&dev->poll_list);
-			list_add_tail(&dev->poll_list, &queue->poll_list);
+			list_move_tail(&dev->poll_list, &queue->poll_list);
 			if (dev->quota < 0)
 				dev->quota += dev->weight;
 			else
Signature · 1 line
Lightweight patch manager using pine. If you have any objections, tell me.