diff options
author | Heiko Carstens <[email protected]> | 2022-02-10 16:08:29 +0100 |
---|---|---|
committer | Vasily Gorbik <[email protected]> | 2022-03-01 21:05:10 +0100 |
commit | e2aaae2d3677563c1bb6cd15fbddd701381823be (patch) | |
tree | 7c4682cfe521a2d01aada62439692294799bb682 /lib/netdev-notifier-error-inject.c | |
parent | f0003a9e4c18ae71308fb6b24de8248ac6180777 (diff) |
s390/mm: add set_pXd()/set_pte() helper functions
Add set_pXd()/set_pte() helper functions which must be used to update
page table entries. The new helpers use WRITE_ONCE() to make sure that
a page table entry is written to only once.
Without this the compiler could otherwise generate code which writes
several times to a page table entry when updating its contents from
invalid to valid, which could lead to surprising results especially
for multithreaded processes...
Reviewed-by: Claudio Imbrenda <[email protected]>
Reviewed-by: Alexander Gordeev <[email protected]>
Signed-off-by: Heiko Carstens <[email protected]>
Signed-off-by: Vasily Gorbik <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions