diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2014-10-24 23:55:58 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-29 18:28:01 (GMT) |
commit | d56109020d93337545dd257a790cb429a70acfad (patch) | |
tree | 42b64ba14827500ddf1e52ec24209d5dcbba2fbe /net | |
parent | 068301f2be36a5c1ee9a2521c94b98e343612a88 (diff) | |
download | linux-d56109020d93337545dd257a790cb429a70acfad.tar.xz |
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>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/sch_pie.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |