Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5610902 authored by WANG Cong's avatar WANG Cong Committed by David S. Miller
Browse files

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: default avatarCong Wang <xiyou.wangcong@gmail.com>
Acked-by: default avatarEric Dumazet <edumazet@google.com>
parent 068301f2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}