Skip to content
  • Dan Williams's avatar
    libnvdimm, pmem: disable dax flushing when pmem is fronting a volatile region · 0b277961
    Dan Williams authored
    
    
    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: default avatarDan Williams <dan.j.williams@intel.com>
    0b277961