From 92efb6e82c11e8f241b272aab152f21bbd83d125 Mon Sep 17 00:00:00 2001 From: Kris Van Hees Date: Tue, 31 Jan 2012 05:04:53 -0500 Subject: [PATCH] Make all allocations that are allowed to fail atomic, and surpress warnings about out-of-memory conditions, since they are not harmful. Also, do not allow DTrace allocations to access the emergency pools. Signed-off-by: Kris Van Hees --- dtrace/dtrace_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dtrace/dtrace_util.c b/dtrace/dtrace_util.c index a4f086c359f4..beb222d44d88 100644 --- a/dtrace/dtrace_util.c +++ b/dtrace/dtrace_util.c @@ -47,8 +47,8 @@ int dtrace_badattr(const dtrace_attribute_t *a) void *dtrace_vzalloc_try(unsigned long size) { return __vmalloc(size, - __GFP_WAIT | __GFP_IO | __GFP_FS | __GFP_NORETRY | - __GFP_ZERO, + GFP_NOWAIT | __GFP_FS | __GFP_IO | __GFP_NOMEMALLOC | + __GFP_NORETRY | __GFP_NOWARN | __GFP_ZERO, PAGE_KERNEL); } -- 2.50.1