Re: [PATCH] Re: kernel BUG at buffer.c:827 in test12-pre6 and 7

From: David S. Miller (davem@redhat.com)
Date: Sat Dec 09 2000 - 09:00:42 EST


   Date: Sat, 9 Dec 2000 00:45:51 -0800 (PST)
   From: Linus Torvalds <torvalds@transmeta.com>

    out:
   - if (nr) {
   - ll_rw_block(WRITE, nr, arr);
   - } else {
   - UnlockPage(page);
   - }
   + UnlockPage(page);
           ClearPageUptodate(page);
           return err;
    }
   @@ -1669,7 +1665,6 @@

It would seem that you would want to unlock the page _after_ clearing
the uptodate bit to make sure people sleeping on the page do not see
it set by accident.

Later,
David S. Miller
davem@redhat.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Dec 15 2000 - 21:00:17 EST