提交 d5610902 编写于 作者: W WANG Cong 提交者: David S. Miller

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: NCong Wang <xiyou.wangcong@gmail.com>
Acked-by: NEric Dumazet <edumazet@google.com>
上级 068301f2
...@@ -445,7 +445,6 @@ static int pie_init(struct Qdisc *sch, struct nlattr *opt) ...@@ -445,7 +445,6 @@ static int pie_init(struct Qdisc *sch, struct nlattr *opt)
sch->limit = q->params.limit; sch->limit = q->params.limit;
setup_timer(&q->adapt_timer, pie_timer, (unsigned long)sch); setup_timer(&q->adapt_timer, pie_timer, (unsigned long)sch);
mod_timer(&q->adapt_timer, jiffies + HZ / 2);
if (opt) { if (opt) {
int err = pie_change(sch, opt); int err = pie_change(sch, opt);
...@@ -454,6 +453,7 @@ static int pie_init(struct Qdisc *sch, struct nlattr *opt) ...@@ -454,6 +453,7 @@ static int pie_init(struct Qdisc *sch, struct nlattr *opt)
return err; return err;
} }
mod_timer(&q->adapt_timer, jiffies + HZ / 2);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册