• Andrew Morton's avatar
    [PATCH] pdflush exclusion infrastructure · 1f6acea0
    Andrew Morton authored
    Collision avoidance for pdflush threads.
    
    Turns the request_queue-based `unsigned long ra_pages' into a structure
    which contains ra_pages as well as a longword.
    
    That longword is used to record the fact that a pdflush thread is
    currently writing something back against this request_queue.
    
    Avoids the situation where several pdflush threads are sleeping on the
    same request_queue.
    
    This patch provides only the infrastructure for the pdflush exclusion.
    This infrastructure gets used in pdflush-single.patch
    1f6acea0
blkdev.h 12.1 KB