Re: [PATCH V6] powercap/drivers/idle_injection: Add an idle injection framework

From: Viresh Kumar
Date: Wed Jun 13 2018 - 05:10:55 EST


On 13-06-18, 11:03, Daniel Lezcano wrote:
> nr_threads(smpboot) <> nr_threads(idleinject)
>
> If we are facing races issues, it is because we are trying to avoid
> using locks in the code path. With lock and proper refcounting that
> should be solved, AFAICT there are similar races with inodes.

I am not sure if locking can make things better here. We aren't using them as we
don't really need them AFAIU :)

--
viresh