nvdimm: virtio_pmem: publish done with release/acquire

virtio_pmem_host_ack() publishes the device response by setting done and
waking the submitter. The submitter reads resp.ret after wait_event()
observes done.

Use smp_store_release() on done and smp_load_acquire() in the wait
condition so the response read is ordered after completion.

Signed-off-by: Li Chen <me@linux.beauty>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-ID: <20260630092338.2094628-10-me@linux.beauty>
This commit is contained in:
Li Chen 2026-06-30 17:23:34 +08:00 • committed by Michael S. Tsirkin
commit 3f14003ce7