mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
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>
This commit is contained in:
parent
068301f2be
commit
d56109020d
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user