diff options
| author | Sean Christopherson <seanjc@google.com> | 2026-09-21 17:13:32 -0700 |
|---|---|---|
| committer | Sean Christopherson <seanjc@google.com> | 2026-09-22 07:28:15 -0700 |
| commit | 48252615eb78e151f93183370a650f5eb7e572fb (patch) | |
| tree | 9a2186eed5a1ff0210999ba2e5af0b4e80d3b04d /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 3fe5d2944e5ac3fc5073344b0982c73703332e18 (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 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
