From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Zijlstra Subject: [PATCH 13/30] selinux: tag avc cache alloc as non-critical Date: Thu, 24 Jul 2008 16:00:55 +0200 Message-ID: <20080724141530.197474094@chello.nl> References: <20080724140042.408642539@chello.nl> Cc: James Morris To: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, trond.myklebust@fy Return-path: Received: from casper.infradead.org ([85.118.1.10]:54676 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752816AbYGXOmR (ORCPT ); Thu, 24 Jul 2008 10:42:17 -0400 Content-Disposition: inline; filename=mm-selinux-emergency.patch Sender: netdev-owner@vger.kernel.org List-ID: Failing to allocate a cache entry will only harm performance not correctness. Do not consume valuable reserve pages for something like that. Signed-off-by: Peter Zijlstra Acked-by: James Morris --- security/selinux/avc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6/security/selinux/avc.c =================================================================== --- linux-2.6.orig/security/selinux/avc.c +++ linux-2.6/security/selinux/avc.c @@ -334,7 +334,7 @@ static struct avc_node *avc_alloc_node(v { struct avc_node *node; - node = kmem_cache_zalloc(avc_node_cachep, GFP_ATOMIC); + node = kmem_cache_zalloc(avc_node_cachep, GFP_ATOMIC|__GFP_NOMEMALLOC); if (!node) goto out; --