libnvdimm, pmem: use nvdimm_flush() for namespace I/O writes
authorDan Williams <dan.j.williams@intel.com>
Thu, 2 Jun 2016 06:14:22 +0000 (23:14 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Jul 2016 22:13:48 +0000 (15:13 -0700)
commit91131dbd1d50637dc338526502a1a2ec5a7f97df
tree922dd917f0d3f9884be31fd94166e805ebc4b545
parent14df6a4e7eba62442aed70dfd5bbd76d2e491d50
libnvdimm, pmem: use nvdimm_flush() for namespace I/O writes

nsio_rw_bytes() is used to write info block metadata to the namespace,
so it should trigger a flush after every write.  Replace wmb_pmem() with
nvdimm_flush() in this path.

Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/claim.c