Dan Williams 7e267a8c79 libnvdimm, pmem: use REQ_FUA, REQ_FLUSH for nvdimm_flush()
Given that nvdimm_flush() has higher overhead than wmb_pmem() (pointer
chasing through nd_region), and that we otherwise assume a platform has
ADR capability when flush hints are not present, move nvdimm_flush() to
REQ_FLUSH context.

Note that we still arrange for nvdimm_flush() to be called even in the
ADR case. We need at least once wmb() fence to push buffered writes in
the cpu out to the ADR protected domain.

Cc: Toshi Kani <toshi.kani@hpe.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2016-07-11 16:16:03 -07:00
..
2016-06-17 16:23:23 -07:00
2016-06-17 16:23:23 -07:00
2016-05-20 22:02:57 -07:00
2015-06-24 21:24:10 -04:00
2016-07-11 16:16:03 -07:00
2016-05-20 22:02:57 -07:00
2016-07-11 16:16:03 -07:00