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

Heiko Carstens
2023-01-11T12:11:45Z

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@linux.ibm.com>
>
> Looks sane.
>
> Reviewed-by: Christian Borntraeger <borntraeger@linux.ibm.com>
>
> In case you want to take it via the s390 tree:
> Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>

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

Applied.