diff options
| author | 2026-09-21 17:13:32 -0700 | |
|---|---|---|
| committer | 2026-09-22 07:28:15 -0700 | |
| commit | 48252615eb78e151f93183370a650f5eb7e572fb (patch) | |
| tree | 9a2186eed5a1ff0210999ba2e5af0b4e80d3b04d /scripts/Makefile.thinlto | |
| parent | KVM: guest_memfd: Establish memslot<=>guest_memfd bindings *after* memslot is ready (diff) | |
KVM: guest_memfd: Drop superfluous WRITE_ONCE() when binding a memslot
Drop the superfluous WRITE_ONCE() when setting a memslot's guest_memfd file
during initial binding, as the memslot *must* be inactive and unreachable.
The superfluous WRITE_ONCE() was added by commit 67b43038ce14 ("KVM:
guest_memfd: Remove RCU-protected attribute from slot->gmem.file") to
maintain rough "parity" with the existing rcu_assign_pointer(), not
realizing that the only reason rcu_assign_pointer() was used was to make
sparse and other checkers happy.
Cc: Yan Zhao <yan.y.zhao@intel.com>
Reviewed-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Ackerley Tng <ackerleytng@google.com>
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Link: https://patch.msgid.link/20260922001332.1121266-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
