Skip to content
  • Jim Houston's avatar
    [PATCH] fix cond_resched() fix · 2d7d2535
    Jim Houston authored
    
    
    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: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    2d7d2535