net/sched: use rtnl_kfree_skbs() in pfifo_fast_reset()
Subsystems (3)
PATCH 1/1 net/sched: use rtnl_kfree_skbs() in pfifo_fast_reset()
rtnl_kfree_skbs() reduces RTNL and qdisc spinlock hold time.
skbs are freed later after RTNL has been released.
Signed-off-by Eric Dumazet <[email protected]>
--- net/sched/sch_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/sched/sch_generic.c +1 -1
@@ -850,7 +850,7 @@ static void pfifo_fast_reset(struct Qdisc *qdisc)continue ;while ((skb =__skb_array_consume (q)) !=NULL ) -kfree_skb (skb); +rtnl_kfree_skbs (skb, skb); }if (qdisc_is_percpu_stats (qdisc)) {
Signature · 1 line
2.53.0.473.g4a7958ca14-goog
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Fri, 6 Mar 2026 13:31:54 +0000 you wrote:
rtnl_kfree_skbs()reduces RTNL and qdisc spinlock hold time.skbs are freed later after RTNL has been released.
Signed-off-by Eric Dumazet <[email protected]>--- net/sched/sch_generic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net-next] net/sched: use rtnl_kfree_skbs() in pfifo_fast_reset()
https://git.kernel.org/netdev/net-next/c/58e4d35ae7b9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html