Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932464AbZJAOF6 (ORCPT ); Thu, 1 Oct 2009 10:05:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932453AbZJAOFz (ORCPT ); Thu, 1 Oct 2009 10:05:55 -0400 Received: from victor.provo.novell.com ([137.65.250.26]:37290 "EHLO victor.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932439AbZJAOFw (ORCPT ); Thu, 1 Oct 2009 10:05:52 -0400 From: Suresh Jayaraman To: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org Cc: netdev@vger.kernel.org, Neil Brown , Miklos Szeredi , Wouter Verhelst , Peter Zijlstra , trond.myklebust@fys.uio.no, Suresh Jayaraman Subject: [PATCH 12/31] selinux: tag avc cache alloc as non-critical Date: Thu, 1 Oct 2009 19:36:57 +0530 Message-Id: <1254406017-16084-1-git-send-email-sjayaraman@suse.de> X-Mailer: git-send-email 1.6.0.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1054 Lines: 29 From: Peter Zijlstra 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 Signed-off-by: Suresh Jayaraman --- security/selinux/avc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: mmotm/security/selinux/avc.c =================================================================== --- mmotm.orig/security/selinux/avc.c +++ mmotm/security/selinux/avc.c @@ -344,7 +344,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 from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/