On Tue, Nov 01, 2016 at 10:06:12PM +0100, Jan Kara wrote: > Currently we don't allow unaligned writes without inode_lock. This is > because zeroing of partial blocks could cause data corruption for racing > unaligned writes to the same block. However DAX handles zeroing during > block allocation and thus zeroing of partial blocks cannot race. Allow > DAX unaligned IO to run without inode_lock. DAX writes should always take the inode lock. Without that you break the expectations of existing applications that did not specify O_DIRECT. -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html