mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 19:13:47 +02:00
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 <edumazet@google.com> Link: https://patch.msgid.link/20260306133154.678730-1-edumazet@google.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
a23c657e33
commit
58e4d35ae7
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user