Skip to content
Commit 179a8100 authored by Catalin Marinas's avatar Catalin Marinas
Browse files

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: default avatarCatalin Marinas <catalin.marinas@arm.com>
Reported-by: default avatarEric Paris <eparis@redhat.com>
parent 43ed5d6e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment