• Andrew Morton's avatar
    [PATCH] fix invalidate_inode_pages2() race · ea66b69c
    Andrew Morton authored
    Fix a buglet in invalidate_list_pages2(): there is a small window in
    which writeback could start against the page before this function locks
    it.
    
    The patch closes the race by performing the PageWriteback test inside
    PageLocked.
    
    Testing PageWriteback inside PageLocked is "definitive" - when a page
    is locked, writeback cannot start against it.
    ea66b69c
filemap.c 56.5 KB