• Christoph Hellwig's avatar
    xfs: fix locking for DAX writes · 17879e8f
    Christoph Hellwig authored
    So far DAX writes inherited the locking from direct I/O writes, but
    the direct I/O model of using shared locks for writes is actually
    wrong for DAX.  For direct I/O we're out of any standards and don't
    have to provide the Posix required exclusion between writers, but
    for DAX which gets transparently enable on applications without any
    knowledge of it we can't simply drop the requirement.  Even worse
    this only happens for aligned writes and thus doesn't show up for
    many typical use cases.
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    Signed-off-by: default avatarDave Chinner <david@fromorbit.com>
    17879e8f
xfs_file.c 43.3 KB