• J
    [PATCH] fix cond_resched() fix · 2d7d2535
    Jim Houston 提交于
    In cond_resched_lock() it calls __resched_legal() before dropping the spin
    lock.  __resched_legal() will always finds the preempt_count non-zero and
    will prevent the call to __cond_resched().
    
    The attached patch adds a parameter to __resched_legal() with the expected
    preempt_count value.
    
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: <stable@kernel.org>
    Signed-off-by: NAndrew Morton <akpm@osdl.org>
    Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
    2d7d2535
sched.c 172.2 KB