diff options
| author | Li Chen <me@linux.beauty> | 2026-06-30 17:23:32 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-08-03 23:08:18 -0400 |
| commit | be595885fc537a0ac0cb83538593cccfaf7f7b71 (patch) | |
| tree | fbd70caa13ea56d4f0a0d837dd74337605762243 /scripts/Makefile.thinlto | |
| parent | 5915b4ca83967fd6daf521c8599acefe62c0a80b (diff) | |
| download | linux-next-be595885fc537a0ac0cb83538593cccfaf7f7b71.tar.gz linux-next-be595885fc537a0ac0cb83538593cccfaf7f7b71.zip | |
nvdimm: virtio_pmem: use READ_ONCE()/WRITE_ONCE() for wait flags
Use READ_ONCE()/WRITE_ONCE() for the wait_event() flags (done and
wq_buf_avail). They are observed by waiters without pmem_lock, so make
the accesses explicit single loads/stores and avoid compiler
reordering/caching across the wait/wake paths.
Acked-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Signed-off-by: Li Chen <me@linux.beauty>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260630092338.2094628-8-me@linux.beauty>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
