• Andrew Morton's avatar
    [PATCH] set TASK_RUNNING in cond_resched() · b2bd3a26
    Andrew Morton authored
    do_select() does set_current_state(TASK_INTERRUPTIBLE) then calls
    __pollwait() which calls __get_free_page() and the cond_resched() which
    I added to the pagecache reclaim code never returns.
    
    The patch makes cond_resched() more useful by setting current->state to
    TASK_RUNNING before scheduling.
    b2bd3a26
sched.h 26 KB