kmemleak: Allow rescheduling during an object scanning
authorCatalin Marinas <catalin.marinas@arm.com>
Thu, 27 Aug 2009 13:29:12 +0000 (14:29 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 27 Aug 2009 13:29:12 +0000 (14:29 +0100)
If the object size is bigger than a predefined value (4K in this case),
release the object lock during scanning and call cond_resched().
Re-acquire the lock after rescheduling and test whether the object is
still valid.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>

No differences found