Skip to content
Commit 6ae4bd1f authored by Catalin Marinas's avatar Catalin Marinas
Browse files

kmemleak: Allow kmemleak metadata allocations to fail



This patch adds __GFP_NORETRY and __GFP_NOMEMALLOC flags to the kmemleak
metadata allocations so that it has a smaller effect on the users of the
kernel slab allocator. Since kmemleak allocations can now fail more
often, this patch also reduces the verbosity by passing __GFP_NOWARN and
not dumping the stack trace when a kmemleak allocation fails.

Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Reported-by: default avatarToralf Förster <toralf.foerster@gmx.de>
Acked-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Acked-by: default avatarDavid Rientjes <rientjes@google.com>
Cc: Ted Ts'o <tytso@mit.edu>
parent 0a08739e
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