• J
    dax: Use radix tree entry lock to protect cow faults · bc2466e4
    Jan Kara 提交于
    When doing cow faults, we cannot directly fill in PTE as we do for other
    faults as we rely on generic code to do proper accounting of the cowed page.
    We also have no page to lock to protect against races with truncate as
    other faults have and we need the protection to extend until the moment
    generic code inserts cowed page into PTE thus at that point we have no
    protection of fs-specific i_mmap_sem. So far we relied on using
    i_mmap_lock for the protection however that is completely special to cow
    faults. To make fault locking more uniform use DAX entry lock instead.
    Reviewed-by: NRoss Zwisler <ross.zwisler@linux.intel.com>
    Signed-off-by: NJan Kara <jack@suse.cz>
    Signed-off-by: NRoss Zwisler <ross.zwisler@linux.intel.com>
    bc2466e4
memory.c 106.5 KB