[rh7] net: drop redundant WARN in qdisc_restart()

Submitted by Konstantin Khorenko on Dec. 18, 2017, 2:33 p.m.

Details

Message ID 1513607631-13388-1-git-send-email-khorenko@virtuozzo.com
State New
Series "net: drop redundant WARN in qdisc_restart()"
Headers show

Commit Message

Konstantin Khorenko Dec. 18, 2017, 2:33 p.m.
+       WARN_ON_ONCE(skb_dst_is_noref(skb));

came to 3.10.0-x on a rebase from 2.6.32-x,
in ms it has been removed by commit:
  0287587884b1 ("net: better IFF_XMIT_DST_RELEASE support")

and the commit presents in current RHEL7 kernel =>

this WARN is a leftover => drop it.

Signed-off-by: Konstantin Khorenko <khorenko@virtuozzo.com>
---
 net/sched/sch_generic.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/net/sched/sch_generic.c b/net/sched/sch_generic.c
index 6896dca..ceec603 100644
--- a/net/sched/sch_generic.c
+++ b/net/sched/sch_generic.c
@@ -222,7 +222,6 @@  static inline int qdisc_restart(struct Qdisc *q)
 	if (unlikely(!skb))
 		return 0;
 
-	WARN_ON_ONCE(skb_dst_is_noref(skb));
 	root_lock = qdisc_lock(q);
 	dev = qdisc_dev(q);
 	txq = skb_get_tx_queue(dev, skb);