Skip to content

re-enable XFS per-inode DAX

Ross Zwisler linux-fsdevel linux-mm linux-nvdimm linux-xfs lkml nvdimm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 38 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7xfs: always use DAX if mount option is usedfs/xfs/xfs_ioctl.c+9 -212 replies
2/7xfs: validate bdev support for DAX inode flagfs/xfs/xfs_ioctl.c+2 -13 replies
3/7xfs: protect S_DAX transitions in XFS read pathfs/xfs/xfs_file.c+13 -296 replies
4/7xfs: protect S_DAX transitions in XFS write pathfs/xfs/xfs_file.c+44 -711 reply
5/7xfs: introduce xfs_is_dax_state_changingfs/xfs/xfs_ioctl.c+23 -111 reply
6/7mm, fs: introduce file_operations->post_mmap()fs/xfs/xfs_file.c include/linux/fs.h mm/mmap.c+17 -112 replies
7/7xfs: re-enable XFS per-inode DAXfs/xfs/xfs_ioctl.c+15 -23 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/7R-b
2/7R-b
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] re-enable XFS per-inode DAX

This series does the work needed to safely re-enable the XFS per-inode DAX flag. This includes fixes to make use of the DAX inode flag more safe and consistent, fixes to the read and write I/O path locking to make S_DAX transitions safe, and some code that prevents the DAX inode flag from transitioning when any mappings are set up.

This series has passed my fstests regression testing both with and without DAX, and it also passes Christoph's regression test for the inode flag:

https://www.spinics.net/lists/linux-xfs/msg10124.html

My goal is to get feedback on this approach and on the XFS implementation, and then to do a similar implementation for ext4 based on my previous ext4 DAX inode flag patches:

https://patchwork.kernel.org/patch/9939743/

These patches apply cleanly to v4.14-rc2.

Ross Zwisler (7):
xfs: always use DAX if mount option is used
xfs: validate bdev support for DAX inode flag
xfs: protect S_DAX transitions in XFS read path
xfs: protect S_DAX transitions in XFS write path
xfs: introduce xfs_is_dax_state_changing mm, fs: introduce file_operations->post_mmap()
xfs: re-enable XFS per-inode DAX

 fs/xfs/xfs_file.c  | 172 ++++++++++++++++++++++-------------------------------
 fs/xfs/xfs_ioctl.c |  47 ++++++++++++---
 include/linux/fs.h |   1 +
 mm/mmap.c          |   2 +
 4 files changed, 114 insertions(+), 108 deletions(-)
Signature · 6 lines
2.9.5

_______________________________________________
Linux-nvdimm mailing list
[email protected]
https://lists.01.org/mailman/listinfo/linux-nvdimm