]> git.baikalelectronics.ru Git - kernel.git/commit
kmemleak: Do no create the clean-up thread during kmemleak_disable()
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 7 Sep 2009 09:14:42 +0000 (10:14 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 8 Sep 2009 15:31:15 +0000 (16:31 +0100)
commitbc4d090b8a1976fff1de30e6e665373dbb517a60
tree2513119dabe3d4c0ccb2f10f5c2b581461f7c335
parentdde0dd5a9d7e6a27f2a92dfc71876a00d68bf93b
kmemleak: Do no create the clean-up thread during kmemleak_disable()

The kmemleak_disable() function could be called from various contexts
including IRQ. It creates a clean-up thread but the kthread_create()
function has restrictions on which contexts it can be called from,
mainly because of the kthread_create_lock. The patch changes the
kmemleak clean-up thread to a workqueue.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-by: Eric Paris <eparis@redhat.com>
mm/kmemleak.c