[PATCH] powerpc: During context switch, check before setting mm_cpumask

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Oct 4 10:58:14 AEDT 2016


On Tue, 2016-10-04 at 10:25 +1100, Balbir Singh wrote:
> I think this makes sense, in fact I think in the longer term we can
> even use __set_bit() reorder-able version since we have a sync
> coming out of schedule(). The read side for TLB flush can use a RMB

No, that wouldn't be atomic vs. other threads accessing the same
bitmap.

Ben.



More information about the Linuxppc-dev mailing list