| 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@jen.americas.sgi.com> |
| References: | <200306111559.h5BFx0m15358@jen.americas.sgi.com> |
| 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> |
|---|---|---|
| ||
| Previous by Date: | RE: XFS/XP Dual Boot?, l.a walsh |
|---|---|
| Next by Date: | Re: TAKE - fix O_DIRECT and uninitialized user memory, Andrew Morton |
| Previous by Thread: | TAKE - fix O_DIRECT and uninitialized user memory, Steve Lord |
| Next by Thread: | Re: TAKE - fix O_DIRECT and uninitialized user memory, Andrew Morton |
| Indexes: | [Date] [Thread] [Top] [All Lists] |