Re: [PATCH] x86/fpu: Don't cache access to fpu_fpregs_owner_ctx
From: Rik van Riel
Date: Wed Nov 27 2019 - 11:05:11 EST
On Wed, 2019-11-27 at 13:42 +0100, Sebastian Andrzej Siewior wrote:
> There is no Sign-off by here. Could this please be verified by the
> reporter?
Next time this is posted, feel free to add this :)
Reviewed-by: Rik van Riel <riel@xxxxxxxxxxx>
> diff --git a/arch/x86/include/asm/fpu/internal.h
> b/arch/x86/include/asm/fpu/internal.h
> index 4c95c365058aa..44c48e34d7994 100644
> --- a/arch/x86/include/asm/fpu/internal.h
> +++ b/arch/x86/include/asm/fpu/internal.h
> @@ -509,7 +509,7 @@ static inline void
> __fpu_invalidate_fpregs_state(struct fpu *fpu)
>
> static inline int fpregs_state_valid(struct fpu *fpu, unsigned int
> cpu)
> {
> - return fpu == this_cpu_read_stable(fpu_fpregs_owner_ctx) && cpu
> == fpu->last_cpu;
> + return fpu == this_cpu_read(fpu_fpregs_owner_ctx) && cpu ==
> fpu->last_cpu;
> }
>
> /*
--
All Rights Reversed.
Attachment:
signature.asc
Description: This is a digitally signed message part