Re: [PATCH v2 08/13] powerpc/hw_breakpoint: Avoid relying on caller synchronization

2022-07-01 Thread Christophe Leroy
Le 01/07/2022 à 11:41, Marco Elver a écrit : > On Fri, 1 Jul 2022 at 10:54, Christophe Leroy > wrote: >> >> Hi Marco, >> >> Le 28/06/2022 à 11:58, Marco Elver a écrit : >>> Internal data structures (cpu_bps, task_bps) of powerpc's hw_breakpoint >>> implementation have relied on nr_bp_mutex seria

Re: [PATCH v2 08/13] powerpc/hw_breakpoint: Avoid relying on caller synchronization

2022-07-01 Thread Christophe Leroy
Hi Marco, Le 28/06/2022 à 11:58, Marco Elver a écrit : > Internal data structures (cpu_bps, task_bps) of powerpc's hw_breakpoint > implementation have relied on nr_bp_mutex serializing access to them. > > Before overhauling synchronization of kernel/events/hw_breakpoint.c, > introduce 2 spinlocks