Re: [PATCH] arm64: neon: Add preemption protection for kernel_neon_busy

From: Dave Martin
Date: Mon Jul 09 2018 - 06:40:51 EST


On Mon, Jul 09, 2018 at 04:45:35PM +0800, Yandong.Zhao wrote:
> From: Yandong Zhao <yandong77520@xxxxxxxxx>
>
> may_use_simd() can be called in any case and access kernel_neon_busy,
> for example: BUG_ON(!may_use_simd()). This patch ensures that
> migration will not occur during program access to kernel_neon_busy.
>
> Signed-off-by: Yandong Zhao <yandong77520@xxxxxxxxx>

(Duplicate patch, see [1] for discussion.)

[...]

Cheers
---Dave

[1] [PATCH] arm64: neon: Do not access kernel_neon_busy with preemption enabled http://lists.infradead.org/pipermail/linux-arm-kernel/2018-July/589259.html