Skip to contentSkip to conversation

dev: Defer free of skbs in flush_backlog

PATCH In review Subash Abhinov Kasiviswanathan 2 participants 2 messages Jul 23, 2020 – Jul 25, 2020

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

PATCH 1/1 dev: Defer free of skbs in flush_backlog

IRQs are disabled when freeing skbs in input queue. Use the IRQ safe variant to free skbs here.

Fixes 145dd5f9c88f ("net: flush the softnet backlog in process context")
---
 net/core/dev.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
index 90b59fc..7a774eb 100644
@@ -5601,7 +5601,7 @@ static void flush_backlog(struct work_struct *work)
 	skb_queue_walk_safe(&sd->input_pkt_queue, skb, tmp) {
 		if (skb->dev->reg_state == NETREG_UNREGISTERING) {
 			__skb_unlink(skb, &sd->input_pkt_queue);
-			kfree_skb(skb);
+			dev_kfree_skb_irq(skb);
 			input_queue_head_incr(sd);
 		}
 	}
Signature · 1 line
2.7.4