The patch titled Subject: dax: add support for fsync/msync has been added to the -mm tree. Its filename is dax-add-support-for-fsync-msync-v7.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/dax-add-support-for-fsync-msync-v7.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/dax-add-support-for-fsync-msync-v7.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx> Subject: dax: add support for fsync/msync 3) Removed second verification of our radix tree entry before cache flush in dax_writeback_one(). (Jan Kara) Signed-off-by: Ross Zwisler <ross.zwisler@xxxxxxxxxxxxxxx> Cc: "H. Peter Anvin" <hpa@xxxxxxxxx> Cc: "J. Bruce Fields" <bfields@xxxxxxxxxxxx> Cc: "Theodore Ts'o" <tytso@xxxxxxx> Cc: Alexander Viro <viro@xxxxxxxxxxxxxxxxxx> Cc: Andreas Dilger <adilger.kernel@xxxxxxxxx> Cc: Dave Chinner <david@xxxxxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxxx> Cc: Jeff Layton <jlayton@xxxxxxxxxxxxxxx> Cc: Matthew Wilcox <willy@xxxxxxxxxxxxxxx> Cc: Thomas Gleixner <tglx@xxxxxxxxxxxxx> Cc: Dan Williams <dan.j.williams@xxxxxxxxx> Cc: Matthew Wilcox <matthew.r.wilcox@xxxxxxxxx> Cc: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/dax.c | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff -puN fs/dax.c~dax-add-support-for-fsync-msync-v7 fs/dax.c --- a/fs/dax.c~dax-add-support-for-fsync-msync-v7 +++ a/fs/dax.c @@ -420,23 +420,14 @@ static int dax_writeback_one(struct bloc if (WARN_ON_ONCE(ret < dax.size)) { ret = -EIO; - dax_unmap_atomic(bdev, &dax); - return ret; - } - - spin_lock_irq(&mapping->tree_lock); - /* - * We need to revalidate our radix entry while holding tree_lock - * before we do the writeback. - */ - if (!__radix_tree_lookup(page_tree, index, &node, &slot)) - goto unmap; - if (*slot != entry) goto unmap; + } wb_cache_pmem(dax.addr, dax.size); unmap: dax_unmap_atomic(bdev, &dax); + return ret; + unlock: spin_unlock_irq(&mapping->tree_lock); return ret; _ Patches currently in -mm which might be from ross.zwisler@xxxxxxxxxxxxxxx are mm-dax-fix-livelock-allow-dax-pmd-mappings-to-become-writeable.patch dax-fix-null-pointer-dereference-in-__dax_dbg.patch dax-fix-conversion-of-holes-to-pmds.patch pmem-add-wb_cache_pmem-to-the-pmem-api.patch pmem-add-wb_cache_pmem-to-the-pmem-api-v6.patch dax-support-dirty-dax-entries-in-radix-tree.patch dax-support-dirty-dax-entries-in-radix-tree-v6.patch mm-add-find_get_entries_tag.patch dax-add-support-for-fsync-sync.patch dax-add-support-for-fsync-sync-v6.patch dax-add-support-for-fsync-msync-v7.patch ext2-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch ext4-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch xfs-call-dax_pfn_mkwrite-for-dax-fsync-msync.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html