Re: [PATCH v2] sched/topology: Allow sched_asym_cpucapacity to be disabled

From: Valentin Schneider
Date: Tue Oct 15 2019 - 08:57:56 EST


On 15/10/2019 12:56, Quentin Perret wrote:
> Hmm, a problem here is that static_branch*() can block (it uses a
> mutex) while you're in the rcu section, I think.
>
> I suppose you could just move this above rcu_read_lock() and use
> rcu_access_pointer() instead ?
>

Right, I got confused again, the only problem is with the rcu_read_lock(),
so the increment is fine but the decrement isn't.

Let me try this again with more coffee.

> Thanks,
> Quentin
>