aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWANG Cong <xiyou.wangcong@gmail.com>2014-10-24 16:55:58 -0700
committerMoyster <oysterized@gmail.com>2016-09-18 12:47:04 +0200
commitcee5735b7ae6b2d42be45eed21f2ce7c13295205 (patch)
tree9aedbc84c493a5b56cb7035d7ce1001096370c26
parent3f3c84791e94a602e11157160fe70d13df0bf70c (diff)
sch_pie: schedule the timer after all init succeed
Cc: Vijay Subramanian <vijaynsu@cisco.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Acked-by: Eric Dumazet <edumazet@google.com>
-rw-r--r--net/sched/sch_pie.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/sch_pie.c b/net/sched/sch_pie.c
index fe65340c8..487ed657a 100644
--- a/net/sched/sch_pie.c
+++ b/net/sched/sch_pie.c
@@ -434,7 +434,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);
@@ -443,6 +442,7 @@ static int pie_init(struct Qdisc *sch, struct nlattr *opt)
return err;
}
+ mod_timer(&q->adapt_timer, jiffies + HZ / 2);
return 0;
}