[lkml]   [1996]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: serious bug in filemap.c

On Sun, 19 May 1996 20:34:19 +0400 (MSD), "A.N.Kuznetsov"
<> said:

> Hello!
> It is possible (and occurs!) that not uptodate pages are mapped into
> process space.
> Maybe, this fix is not complete.

It doesn't look quite right.

> ...
> wait_on_page(page);
> #ifndef NO_ANK_FIX
> if (!PageUptodate(page)) {
> inode->i_op->readpage(inode, page);
> ...

wait_on_page() should not return until all the outstanding IO on the
page has been completed, and the page is now unlocked. At this point,
!PageUptodate(page) is not an indication that IO is still outstanding
--- it is an indication that there was an error in the IO and the page
has not been read correctly.

We definitely have to deal with this condition, but I think the right
way would be to treat it as an error rather than simply resubmitting
the IO request.

Stephen Tweedie <>
Department of Computer Science, Edinburgh University, Scotland.

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