diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2023-01-09 15:54:56 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-01-11 15:28:47 +0100 |
commit | 42400d99e9f0728c17240edb9645637ead40f6b9 (patch) | |
tree | a31270d8eb3bfa5e7f7fce4895528c70af882389 /net/ipv4/tcp_bpf.c | |
parent | e3f360db08d55a14112bd27454e616a24296a8b0 (diff) | |
download | linux-42400d99e9f0728c17240edb9645637ead40f6b9.tar.gz linux-42400d99e9f0728c17240edb9645637ead40f6b9.tar.bz2 linux-42400d99e9f0728c17240edb9645637ead40f6b9.zip |
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: Christian Borntraeger <borntraeger@linux.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Link: https://lore.kernel.org/r/20230109145456.2895385-1-hca@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'net/ipv4/tcp_bpf.c')
0 files changed, 0 insertions, 0 deletions