From: Catalin Marinas Date: Mon, 7 Sep 2009 09:14:42 +0000 (+0100) Subject: kmemleak: Do no create the clean-up thread during kmemleak_disable() X-Git-Tag: v2.6.32-rc1~735^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=179a8100e12d0053f4b368ea3358dd9a0fc6cb94;p=pandora-kernel.git 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 Reported-by: Eric Paris --- Reading git-diff-tree failed