xfs
[Top] [All Lists]

Re: TAKE - fix O_DIRECT and uninitialized user memory

To: Steve Lord <lord@xxxxxxx>
Subject: Re: TAKE - fix O_DIRECT and uninitialized user memory
From: Andrew Morton <akpm@xxxxxxxxx>
Date: Thu, 12 Jun 2003 03:22:19 -0700
Cc: linux-xfs@xxxxxxxxxxx
In-reply-to: <200306111559.h5BFx0m15358@xxxxxxxxxxxxxxxxxxxx>
References: <200306111559.h5BFx0m15358@xxxxxxxxxxxxxxxxxxxx>
Sender: linux-xfs-bounce@xxxxxxxxxxx
Steve Lord <lord@xxxxxxx> wrote:
>
>       - In pagebuf_lookup, create a pagebuf which is lockable so we
>         do not lock the pages within it during I/O. Only O_DIRECT
>         does I/O on this type of pagebuf.

oops.

What happens if an application passes multiple presentations of
the same page into a single non-O_DIRECT write() or read()?

ie:

        mmap(buf, 4096, PROT_READ, MAP_FIXED, fd1, 0);
        mmap(buf+4096, 4096, PROT_READ, MAP_FIXED, fd1, 0);
        write(fd2, buf, 8192);

?


<Prev in Thread] Current Thread [Next in Thread>