[PATCH] xfstests 246: Test for race between direct I/O and mmap
Dave Chinner
david at fromorbit.com
Wed Nov 17 23:36:23 CST 2010
On Fri, Nov 12, 2010 at 04:37:07PM -0600, Eric Sandeen wrote:
>
>
> From: Lachlan McIlroy <lmcilory at redhat.com>
>
> A customer reported a problem:
>
> If a process is using mmap to write to a file on an
> ext4 filesystem while another process is using direct
> I/O to write to the same file the first thread may
> receive a SIGBUS during a page fault.
>
> A SIGBUS occurs if the page fault tries to access a
> page that is entirely beyond the end of the file but
> in this test case that should not be happening.
>
> Signed-off-by: Eric Sandeen <sandeen at redhat.com>
> ---
looks fine to me.
Reviewed-by: Dave Chinner <dchinner at redhat.com>
Cheers,
Dave.
--
Dave Chinner
david at fromorbit.com
More information about the xfs
mailing list