• Hugh Dickins's avatar
    [PATCH] swap 3/3 unsafe Dirty check · bff61867
    Hugh Dickins authored
    Todd R. Eigenschink <todd@tekinteractive.com> reported 2.4 swapoff
    kernel BUG at filemap.c:122 to LKML 24 May.  Other problems on that
    system may have contributed, but yes, despite __delete_from_swap_cache
    doing ClearPageDirty before __remove_inode_page to avoid the BUG(),
    a concurrent zap_pte_range might race to set_page_dirty.  So skip
    that oops in PageSwapCache case.  Remove the prior ClearPageDirty?
    maybe but not without deeper thought: let stay for now.
    bff61867
filemap.c 56.4 KB