summaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/bus.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2016-06-02 05:48:15 +0200
committerDan Williams <dan.j.williams@intel.com>2016-07-12 01:16:03 +0200
commit7e267a8c790edfde9b697cbe944ee566f41219c3 (patch)
tree09133c8e81f5be702f649de096b5661419170418 /drivers/nvdimm/bus.c
parentlibnvdimm: cycle flush hints (diff)
downloadlinux-7e267a8c790edfde9b697cbe944ee566f41219c3.tar.xz
linux-7e267a8c790edfde9b697cbe944ee566f41219c3.zip
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>
Diffstat (limited to 'drivers/nvdimm/bus.c')
0 files changed, 0 insertions, 0 deletions