lkml.org 
[lkml]   [2003]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: statfs() / statvfs() syscall ballsup...
From
>>>>> " " == Linus Torvalds <torvalds@osdl.org> writes:

> On Fri, 10 Oct 2003, Joel Becker wrote:
>>
>> msync() forces write(), like fsync(). It doesn't force read().
> Actually, the kernel has a "readahead(fd, offset, size)" system
> call that will start asynchronous read-ahead on any
> mapping. After that, just touching the page will obviously map
> in and synchronize the result.
That's different. That's just preheating the page cache.

It does nothing for the case Joel mentioned where 2 different nodes
are writing to the same device, and you need to force a read in order
to resynchronize the page cache.
Apart from O_DIRECT, we have nothing in the kernel as it stands that
will allow userland to deal with this case.

Cheers,
Trond
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.304 / U:0.440 seconds]
©2003-2014 Jasper Spaans. Advertise on this site