summaryrefslogtreecommitdiff
path: root/drivers/dax
diff options
context:
space:
mode:
authorRoss Zwisler <ross.zwisler@linux.intel.com>2018-06-06 10:45:15 -0600
committerDan Williams <dan.j.williams@intel.com>2018-06-06 11:02:32 -0700
commit546eb0317cfa3c4f9e1d9ab892766d65d7f78fad (patch)
treebd07bde17c89b06bdf2bcf337b701c7cb3f0da9e /drivers/dax
parentce7f11a230d5b7165480b96c0cc7a90358b5b5e2 (diff)
libnvdimm, pmem: Do not flush power-fail protected CPU caches
This commit: 5fdf8e5ba566 ("libnvdimm: re-enable deep flush for pmem devices via fsync()") intended to make sure that deep flush was always available even on platforms which support a power-fail protected CPU cache. An unintended side effect of this change was that we also lost the ability to skip flushing CPU caches on those power-fail protected CPU cache. Fix this by skipping the low level cache flushing in dax_flush() if we have CPU caches which are power-fail protected. The user can still override this behavior by manually setting the write_cache state of a namespace. See libndctl's ndctl_namespace_write_cache_is_enabled(), ndctl_namespace_enable_write_cache() and ndctl_namespace_disable_write_cache() functions. Cc: <stable@vger.kernel.org> Fixes: 5fdf8e5ba566 ("libnvdimm: re-enable deep flush for pmem devices via fsync()") Signed-off-by: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dax')
0 files changed, 0 insertions, 0 deletions