[lkml]   [2002]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] double flush_page_to_ram
       From: Andrea Arcangeli <>
    Date: Thu, 9 May 2002 15:01:46 +0200

    On Thu, May 09, 2002 at 04:56:43AM -0700, David S. Miller wrote:
    > Wrong, consider the case where we do early COW in do_no_page, you miss
    > a flush on the new-new page.

    so you mean we need a flush_page_to_ram also before the
    copy_user_highpage to be sure we copy uptodate contents of the
    pagecache? (possibly mapped writeable elsewhere in the user address

    That is correct.

    The fact that this ends up with multiple flushes is one of
    several reasons why Documentation/cachetlb.txt encourages
    ports to move to the newer way to handle this (flush_dcache_page()
    plus bits in {copy,clear}_user_page() to handle the cache issues
    and not using flush_page_to_ram() at all).

    Franks a lot,
    David S. Miller
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 13:25    [W:0.022 / U:37.836 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site