Merge tag 'libnvdimm-for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm updates from Dan Williams: "This adds a user for the new 'bytes-remaining' updates to memcpy_mcsafe() that you already received through Ingo via the x86-dax- for-linus pull. Not included here, but still targeting this cycle, is support for handling memory media errors (poison) consumed via userspace dax mappings. Summary: - DAX broke a fundamental assumption of truncate of file mapped pages. The truncate path assumed that it is safe to disconnect a pinned page from a file and let the filesystem reclaim the physical block. With DAX the page is equivalent to the filesystem block. Introduce dax_layout_busy_page() to enable filesystems to wait for pinned DAX pages to be released. Without this wait a filesystem could allocate blocks under active device-DMA to a new file. - DAX arranges for the block layer to be bypassed and uses dax_direct_access() + copy_to_iter() to satisfy read(2) calls. However, the memcpy_mcsafe() facility is available through the pmem block driver. In order to safely handle media errors, via the DAX block-layer bypass, introduce copy_to_iter_mcsafe(). - Fix cache management policy relative to the ACPI NFIT Platform Capabilities Structure to properly elide cache flushes when they are not necessary. The table indicates whether CPU caches are power-fail protected. Clarify that a deep flush is always performed on REQ_{FUA,PREFLUSH} requests" * tag 'libnvdimm-for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: (21 commits) dax: Use dax_write_cache* helpers libnvdimm, pmem: Do not flush power-fail protected CPU caches libnvdimm, pmem: Unconditionally deep flush on *sync libnvdimm, pmem: Complete REQ_FLUSH => REQ_PREFLUSH acpi, nfit: Remove ecc_unit_size dax: dax_insert_mapping_entry always succeeds libnvdimm, e820: Register all pmem resources libnvdimm: Debug probe times linvdimm, pmem: Preserve read-only setting for pmem devices x86, nfit_test: Add unit test for memcpy_mcsafe() pmem: Switch to copy_to_iter_mcsafe() dax: Report bytes remaining in dax_iomap_actor() dax: Introduce a ->copy_to_iter dax operation uio, lib: Fix CONFIG_ARCH_HAS_UACCESS_MCSAFE compilation xfs, dax: introduce xfs_break_dax_layouts() xfs: prepare xfs_break_layouts() for another layout type xfs: prepare xfs_break_layouts() to be called with XFS_MMAPLOCK_EXCL mm, fs, dax: handle layout changes to pinned dax mappings mm: fix __gup_device_huge vs unmap mm: introduce MEMORY_DEVICE_FS_DAX and CONFIG_DEV_PAGEMAP_OPS ...
No related branches found
No related tags found
Showing
- Documentation/ABI/removed/sysfs-bus-nfit 17 additions, 0 deletionsDocumentation/ABI/removed/sysfs-bus-nfit
- Documentation/ABI/testing/sysfs-bus-nfit 0 additions, 19 deletionsDocumentation/ABI/testing/sysfs-bus-nfit
- arch/x86/Kconfig.debug 3 additions, 0 deletionsarch/x86/Kconfig.debug
- arch/x86/include/asm/mcsafe_test.h 75 additions, 0 deletionsarch/x86/include/asm/mcsafe_test.h
- arch/x86/lib/memcpy_64.S 10 additions, 0 deletionsarch/x86/lib/memcpy_64.S
- drivers/acpi/nfit/core.c 0 additions, 11 deletionsdrivers/acpi/nfit/core.c
- drivers/dax/super.c 24 additions, 9 deletionsdrivers/dax/super.c
- drivers/md/dm-linear.c 16 additions, 0 deletionsdrivers/md/dm-linear.c
- drivers/md/dm-log-writes.c 15 additions, 0 deletionsdrivers/md/dm-log-writes.c
- drivers/md/dm-stripe.c 21 additions, 0 deletionsdrivers/md/dm-stripe.c
- drivers/md/dm.c 25 additions, 0 deletionsdrivers/md/dm.c
- drivers/nvdimm/bus.c 13 additions, 6 deletionsdrivers/nvdimm/bus.c
- drivers/nvdimm/e820.c 22 additions, 19 deletionsdrivers/nvdimm/e820.c
- drivers/nvdimm/pfn_devs.c 0 additions, 2 deletionsdrivers/nvdimm/pfn_devs.c
- drivers/nvdimm/pmem.c 36 additions, 10 deletionsdrivers/nvdimm/pmem.c
- drivers/nvdimm/region_devs.c 2 additions, 1 deletiondrivers/nvdimm/region_devs.c
- drivers/s390/block/dcssblk.c 7 additions, 0 deletionsdrivers/s390/block/dcssblk.c
- fs/Kconfig 1 addition, 0 deletionsfs/Kconfig
- fs/dax.c 111 additions, 25 deletionsfs/dax.c
- fs/xfs/xfs_file.c 66 additions, 6 deletionsfs/xfs/xfs_file.c
Loading
Please register or sign in to comment