Re: [PATCH v2] KVM: s390: interrupt: use READ_ONCE() before cmpxchg()

From: Heiko Carstens
Date: Wed Jan 11 2023 - 07:11:56 EST


On Tue, Jan 10, 2023 at 08:15:50PM +0100, Christian Borntraeger wrote:
> Am 09.01.23 um 15:54 schrieb Heiko Carstens:
> > Use READ_ONCE() before cmpxchg() to prevent that the compiler generates
> > code that fetches the to be compared old value several times from memory.
> >
> > Signed-off-by: Heiko Carstens <hca@xxxxxxxxxxxxx>
>
> Looks sane.
>
> Reviewed-by: Christian Borntraeger <borntraeger@xxxxxxxxxxxxx>
>
> In case you want to take it via the s390 tree:
> Acked-by: Christian Borntraeger <borntraeger@xxxxxxxxxxxxx>

Given that there don't seem to be any pending s390 specific patches I
take it via the s390 tree.

Applied.