summaryrefslogtreecommitdiff
path: root/drivers/nvdimm/core.c
diff options
context:
space:
mode:
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>2019-09-24 17:13:27 +0530
committerDan Williams <dan.j.williams@intel.com>2019-09-24 10:33:19 -0700
commit4c806b897d6075bfa5067e524fb058c57ab64e7b (patch)
tree45a203c9771bbe13a8b4ee06252abc10234f8c2f /drivers/nvdimm/core.c
parent674f31a352da5e9f621f757b9a89262f486533a0 (diff)
downloadlwn-4c806b897d6075bfa5067e524fb058c57ab64e7b.tar.gz
lwn-4c806b897d6075bfa5067e524fb058c57ab64e7b.zip
libnvdimm/region: Enable MAP_SYNC for volatile regions
Some environments want to use a host tmpfs/ramdisk to back guest pmem. While the data is not persisted relative to the host it *is* persisted relative to guest crashes / reboots. The guest is free to use dax and MAP_SYNC to keep filesystem metadata consistent with dax accesses without requiring guest fsync(). The guest can also observe that the region is volatile and skip cache flushing as global visibility is enough to "persist" data relative to the host staying alive over guest reset events. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Reviewed-by: Pankaj Gupta <pagupta@redhat.com> Link: https://lore.kernel.org/r/20190924114327.14700-1-aneesh.kumar@linux.ibm.com [djbw: reword the changelog] Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/nvdimm/core.c')
0 files changed, 0 insertions, 0 deletions