Re: [PATCH] arm64: abort counter_read_on_cpu() when irqs_disabled()

2020-11-13 Thread Catalin Marinas
On Fri, Nov 13, 2020 at 04:58:43PM +, Ionela Voinescu wrote: > On Friday 13 Nov 2020 at 16:02:34 (+), Mark Rutland wrote: > > On Fri, Nov 13, 2020 at 03:53:28PM +, Ionela Voinescu wrote: > > > Given that smp_call_function_single() can deadlock when interrupts are > > > disabled, abort

Re: [PATCH] arm64: abort counter_read_on_cpu() when irqs_disabled()

2020-11-13 Thread Mark Rutland
On Fri, Nov 13, 2020 at 04:58:43PM +, Ionela Voinescu wrote: > On Friday 13 Nov 2020 at 16:02:34 (+), Mark Rutland wrote: > > On Fri, Nov 13, 2020 at 03:53:28PM +, Ionela Voinescu wrote: > > > Given that smp_call_function_single() can deadlock when interrupts are > > > disabled, abort

Re: [PATCH] arm64: abort counter_read_on_cpu() when irqs_disabled()

2020-11-13 Thread Ionela Voinescu
On Friday 13 Nov 2020 at 16:02:34 (+), Mark Rutland wrote: > On Fri, Nov 13, 2020 at 03:53:28PM +, Ionela Voinescu wrote: > > Given that smp_call_function_single() can deadlock when interrupts are > > disabled, abort the SMP call if irqs_disabled(). This scenario is > > currently not

Re: [PATCH] arm64: abort counter_read_on_cpu() when irqs_disabled()

2020-11-13 Thread Mark Rutland
On Fri, Nov 13, 2020 at 03:53:28PM +, Ionela Voinescu wrote: > Given that smp_call_function_single() can deadlock when interrupts are > disabled, abort the SMP call if irqs_disabled(). This scenario is > currently not possible given the function's uses, but safeguard this for > potential

[PATCH] arm64: abort counter_read_on_cpu() when irqs_disabled()

2020-11-13 Thread Ionela Voinescu
Given that smp_call_function_single() can deadlock when interrupts are disabled, abort the SMP call if irqs_disabled(). This scenario is currently not possible given the function's uses, but safeguard this for potential future uses. Signed-off-by: Ionela Voinescu Cc: Catalin Marinas Cc: Will