kmemleak: Add more cond_resched() calls in the scanning thread
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 7 Jul 2009 09:32:56 +0000 (10:32 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 7 Jul 2009 09:32:56 +0000 (10:32 +0100)
Following recent fix to no longer reschedule in the scan_block()
function, the system may become unresponsive with !PREEMPT. This patch
re-adds the cond_resched() call to scan_block() but conditioned by the
allow_resched parameter.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Cc: Ingo Molnar <mingo@elte.hu>

No differences found