From mboxrd@z Thu Jan 1 00:00:00 1970 Message-Id: <20080320202123.205173000@chello.nl> References: <20080320201042.675090000@chello.nl> Date: Thu, 20 Mar 2008 21:10:55 +0100 From: Peter Zijlstra Subject: [PATCH 13/30] selinux: tag avc cache alloc as non-critical Content-Disposition: inline; filename=mm-selinux-emergency.patch Sender: owner-linux-mm@kvack.org Return-Path: To: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, trond.myklebust@fys.uio.no, neilb@suse.de, miklos@szeredi.hu, penberg@cs.helsinki.fi, a.p.zijlstra@chello.nl Cc: James Morris 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; -- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org