diff --git a/drivers/nvdimm/claim.c b/drivers/nvdimm/claim.c index 9997ff94a13232128e17a6e45964ac75ffd7555f..d5dc80c48b4cb36a55c54a2383ce9812ae068260 100644 --- a/drivers/nvdimm/claim.c +++ b/drivers/nvdimm/claim.c @@ -240,7 +240,7 @@ static int nsio_rw_bytes(struct nd_namespace_common *ndns, return memcpy_from_pmem(buf, nsio->addr + offset, size); } else { memcpy_to_pmem(nsio->addr + offset, buf, size); - wmb_pmem(); + nvdimm_flush(to_nd_region(ndns->dev.parent)); } return 0;