lkml.org 
[lkml]   [2007]   [Jan]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[patch 1/7] mm: debug check for the fault vs invalidate race
    Date
    Add a bugcheck for Andrea's pagefault vs invalidate race. This is triggerable
    for both linear and nonlinear pages with a userspace test harness (using
    direct IO and truncate, respectively).

    Signed-off-by: Nick Piggin <npiggin@suse.de>

    Index: linux-2.6/mm/filemap.c
    ===================================================================
    --- linux-2.6.orig/mm/filemap.c
    +++ linux-2.6/mm/filemap.c
    @@ -120,6 +120,8 @@ void __remove_from_page_cache(struct pag
    page->mapping = NULL;
    mapping->nrpages--;
    __dec_zone_page_state(page, NR_FILE_PAGES);
    +
    + BUG_ON(page_mapped(page));
    }

    void remove_from_page_cache(struct page *page)
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2007-01-13 05:37    [W:5.162 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site