• Andrew Morton's avatar
    [PATCH] fix race between writeback and unlink · c83686ac
    Andrew Morton authored
    Fixes a race between unlink and writeback: on the sys_sync() and
    pdflush paths the caller does not have a reference against the inode.
    
    So run __iget prior to dropping inode_lock.
    
    Oleg Drokin reported this and seems to believe that it fixes the
    crashes he was observing.  But I was never able to reproduce them..
    c83686ac
fs-writeback.c 14.7 KB