KVM: s390: interrupt: use READ_ONCE() before cmpxchg()
Use READ_ONCE() before cmpxchg() to prevent that the compiler generates code that fetches the to be compared old value several times from memory. Reviewed-by: NChristian Borntraeger <borntraeger@linux.ibm.com> Acked-by: NChristian Borntraeger <borntraeger@linux.ibm.com> Reviewed-by: NClaudio Imbrenda <imbrenda@linux.ibm.com> Link: https://lore.kernel.org/r/20230109145456.2895385-1-hca@linux.ibm.comSigned-off-by: NHeiko Carstens <hca@linux.ibm.com>
Showing
想要评论请 注册 或 登录