netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Patch net 1/2] sch_pie: schedule the timer after all init succeed
@ 2014-10-24 23:55 Cong Wang
  2014-10-24 23:55 ` [Patch net 2/2] net_sched: always call ->destroy when ->init() fails Cong Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Cong Wang @ 2014-10-24 23:55 UTC (permalink / raw)
  To: netdev; +Cc: davem, Cong Wang, Vijay Subramanian

Cc: Vijay Subramanian <vijaynsu@cisco.com>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
---
 net/sched/sch_pie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c
index 33d7a98..b783a44 100644
--- a/net/sched/sch_pie.c
+++ b/net/sched/sch_pie.c
@@ -445,7 +445,6 @@ static int pie_init(struct Qdisc *sch, struct nlattr *opt)
 	sch->limit = q->params.limit;
 
 	setup_timer(&q->adapt_timer, pie_timer, (unsigned long)sch);
-	mod_timer(&q->adapt_timer, jiffies + HZ / 2);
 
 	if (opt) {
 		int err = pie_change(sch, opt);
@@ -454,6 +453,7 @@ static int pie_init(struct Qdisc *sch, struct nlattr *opt)
 			return err;
 	}
 
+	mod_timer(&q->adapt_timer, jiffies + HZ / 2);
 	return 0;
 }
 
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2014-10-30  3:09 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-24 23:55 [Patch net 1/2] sch_pie: schedule the timer after all init succeed Cong Wang
2014-10-24 23:55 ` [Patch net 2/2] net_sched: always call ->destroy when ->init() fails Cong Wang
2014-10-25  0:14   ` Eric Dumazet
2014-10-25  0:36     ` Cong Wang
2014-10-25  0:40       ` Eric Dumazet
2014-10-25  0:42       ` Eric Dumazet
2014-10-25  0:36     ` Patrick McHardy
2014-10-25  0:38       ` Cong Wang
2014-10-25  0:44         ` Patrick McHardy
2014-10-25  0:53           ` Cong Wang
2014-10-25  1:04             ` Patrick McHardy
2014-10-28 19:58               ` David Miller
2014-10-29 18:29   ` David Miller
2014-10-30  3:09     ` John Fastabend
2014-10-25  0:17 ` [Patch net 1/2] sch_pie: schedule the timer after all init succeed Eric Dumazet
2014-10-25  0:28   ` Cong Wang
2014-10-25  0:39     ` Eric Dumazet
2014-10-25  0:42       ` Cong Wang
2014-10-29 18:28 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).