[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <8aadfbebed6502f21ba91a823e118770b84e31d2.camel@surriel.com>
Date: Wed, 27 Nov 2019 10:46:51 -0500
From: Rik van Riel <riel@...riel.com>
To: Sebastian Andrzej Siewior <bigeasy@...utronix.de>,
Barret Rhoden <brho@...gle.com>,
Josh Bleecher Snyder <josharian@...il.com>
Cc: x86@...nel.org, linux-kernel@...r.kernel.org,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>
Subject: Re: [PATCH] x86/fpu: Don't cache access to fpu_fpregs_owner_ctx
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@...riel.com>
> 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.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists