aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/nvdimm/claim.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-06-09 09:46:50 -0700
committerDan Williams <dan.j.williams@intel.com>2017-06-29 09:29:50 -0700
commit0b277961f4484fb3f142caaa1dd1748cb0b2cbee (patch)
treec3ba6190530a8732a64df8e2dba2c6028d36a2eb /drivers/nvdimm/claim.c
parentlibnvdimm, pmem, dax: export a cache control attribute (diff)
downloadlinux-dev-0b277961f4484fb3f142caaa1dd1748cb0b2cbee.tar.xz
linux-dev-0b277961f4484fb3f142caaa1dd1748cb0b2cbee.zip
libnvdimm, pmem: disable dax flushing when pmem is fronting a volatile region
The pmem driver attaches to both persistent and volatile memory ranges advertised by the ACPI NFIT. When the region is volatile it is redundant to spend cycles flushing caches at fsync(). Check if the hosting region is volatile and do not set dax_write_cache() if it is. Cc: Jan Kara <jack@suse.cz> Cc: Jeff Moyer <jmoyer@redhat.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Matthew Wilcox <mawilcox@microsoft.com> Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/claim.c')
0 files changed, 0 insertions, 0 deletions