Re: 2.6.19 file content corruption on ext3





On Sun, 17 Dec 2006, Linus Torvalds wrote:

So we should probably do a "wait_for_page()" in do_no_page()?

Or maybe only do it for write accesses (since we don't really care about
getting mapped readably)? If so, we need to do it in the write case of
do_no_page() _and_ in the do_wp_page() case. Hmm?

I think we discussed doing exactly this at some earlier time, actually,
just to try to throttle people who do lots of page dirtying.

Maybe we even do it somewhere, but I tried to see it, and in the normal
"nopage()" routine we very much try to _avoid_ locking the page (ie if
it's marked PageUptodate() we'll return it whether locked or not). Which
is fine - especially for readers, there really isn't any reason to ever
delay them getting access to a page just because it's locked for write-out
or something (once it's mapped, they'll have access to it regardless of
any locked state in the kernel anyway).

So I don't actually see any serialization at all that would keep a random
page from being paged back in.

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



Relevant Pages

  • Re: Text processing examples with Fortran requested
    ... elevators do care about the date and time. ... Which didn't prevent the hype. ... If australian kids don't all die of skin cancer, ... to that sun, most of it before they started "warning" me about it and the ...
    (comp.os.vms)
  • Re: Lost in J2ME
    ... > huy wrote: ... >>with some missing APIs (things Sun has decided you won't need for a PDA ... I don't care much for CVM vs JVM specifics. ... PersonalJava was introduced ...
    (comp.lang.java.programmer)
  • Re: Whither VMS?
    ... And why should HP care, they're not involved in antitrust issues. ... Power is essentially proprietary in the enterprise server business, ... Plus, AFAIK it's not Sun which develops and makes Sparc CPUs, ...
    (comp.os.vms)
  • Re: [git pull] drm: previous pull req + 1.
    ... On Sun, 21 Jun 2009, Linus Torvalds wrote: ... where the top-level entries look fine, but the PTE is total crap. ... here's a totally UNTESTED patch that hopefully gives a warning on ...
    (Linux-Kernel)
  • Re: G.M.T. Thursday 23rd August 2007
    ... We're certainly not getting that good weather here in the ... Morning Linda I certainly hope the sun gets to you and you will feel better ... Take care and have a lovely day;-))) ...
    (uk.people.silversurfers)