nvme: add wmb before writing shadow register
Fixes issue #1828. Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I02ba897b6c10f4ec870f46825f09e00f0c7c0235 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7905 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
This commit is contained in:
parent
c754043946
commit
3a7a66e505
@ -241,6 +241,8 @@ nvme_pcie_qpair_update_mmio_required(struct spdk_nvme_qpair *qpair, uint16_t val
|
||||
return true;
|
||||
}
|
||||
|
||||
spdk_wmb();
|
||||
|
||||
old = *shadow_db;
|
||||
*shadow_db = value;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user