From: Cong Wang <[email protected]>
Date: Tue, 13 Jun 2017 13:36:24 -0700

> Laura reported a sleep-in-atomic kernel warning inside
> tcf_act_police_init() which calls gen_replace_estimator() with
> spinlock protection.
> 
> It is not necessary in this case, we already have RTNL lock here
> so it is enough to protect concurrent writers. For the reader,
> i.e. tcf_act_police(), it needs to make decision based on this
> rate estimator, in the worst case we drop more/less packets than
> necessary while changing the rate in parallel, it is still acceptable.
> 
> Reported-by: Laura Abbott <[email protected]>
> Reported-by: Nick Huber <[email protected]>
> Cc: Jamal Hadi Salim <[email protected]>
> Signed-off-by: Cong Wang <[email protected]>

Applied, thanks.

Reply via email to