From: Vaibhav Nagarnaik Date: Wed, 8 Jun 2011 00:01:42 +0000 (-0700) Subject: ring-buffer: Set __GFP_NORETRY flag for ring buffer allocating process X-Git-Tag: v3.1-rc1~299^2~13^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7ec4bfed6c97405c6417970ba06c439e08ab8e3;p=pandora-kernel.git ring-buffer: Set __GFP_NORETRY flag for ring buffer allocating process The tracing ring buffer is allocated from kernel memory. While allocating a large chunk of memory, OOM might happen which destabilizes the system. Thus random processes might get killed during the allocation. This patch adds __GFP_NORETRY flag to the ring buffer allocation calls to make it fail more gracefully if the system will not be able to complete the allocation request. Acked-by: David Rientjes Signed-off-by: Vaibhav Nagarnaik Cc: Ingo Molnar Cc: Frederic Weisbecker Cc: Michael Rubin Cc: David Sharp Link: http://lkml.kernel.org/r/1307491302-9236-1-git-send-email-vnagarnaik@google.com Signed-off-by: Steven Rostedt --- Reading git-diff-tree failed