xfs: disable per-inode DAX flag
authorChristoph Hellwig <hch@lst.de>
Wed, 30 Aug 2017 16:23:01 +0000 (09:23 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Sep 2017 20:08:26 +0000 (13:08 -0700)
Currently flag switching can be used to easily crash the kernel.  Disable
the per-inode DAX flag until that is sorted out.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_ioctl.c

index 9c0c7a920304edf68f82c6407abc43f4bd5ee8c7..06ca244c323ae3af6940478f08b834b7707101d6 100644 (file)
@@ -1008,11 +1008,12 @@ xfs_diflags_to_linux(
                inode->i_flags |= S_NOATIME;
        else
                inode->i_flags &= ~S_NOATIME;
+#if 0  /* disabled until the flag switching races are sorted out */
        if (xflags & FS_XFLAG_DAX)
                inode->i_flags |= S_DAX;
        else
                inode->i_flags &= ~S_DAX;
-
+#endif
 }
 
 static int