[lkml]   [1999]   [Jul]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC] - Some notions that I would like comments on

On Thu, 15 Jul 1999 11:41:02 -0400 (EDT), Chuck Lever <>

> i notice that try_to_read_ahead (used by both mmap and normal file reads)
> will add a page to the page cache and read it in if it isn't already in
> the cache. but it won't update a page if the page is already in the
> cache, but is not up to date.

A page should only ever be non-uptodate if either it is currently still
being read in (in which case it will be locked, too), or if there was an
IO error reading it in. In the latter case, you want to do an IO retry
when the user next explicitly asks for that page, but you really want to
avoid doing the retry every single time the readahead zone hits the
page. On some devices, IO errors can be really expensive (think about
the amount of time it takes to get a sector-not-found timeout on a
floppy), and you want to avoid unnecessary retries due to readahead.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at

 \ /
  Last update: 2005-03-22 13:53    [W:0.040 / U:16.592 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site