Commit 58e4d35a authored by Eric Dumazet's avatar Eric Dumazet Committed by Jakub Kicinski
Browse files

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: default avatarEric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260306133154.678730-1-edumazet@google.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent a23c657e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)) {