From patchwork Thu Oct 2 13:05:19 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Zijlstra X-Patchwork-Id: 2404 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 75012DE160 for ; Thu, 2 Oct 2008 23:21:18 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755106AbYJBNUf (ORCPT ); Thu, 2 Oct 2008 09:20:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754874AbYJBNUa (ORCPT ); Thu, 2 Oct 2008 09:20:30 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:53644 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754792AbYJBNTJ (ORCPT ); Thu, 2 Oct 2008 09:19:09 -0400 Received: from d9244.upc-d.chello.nl ([213.46.9.244] helo=twins) by bombadil.infradead.org with esmtpsa (Exim 4.68 #1 (Red Hat Linux)) id 1KlO4e-0002Wx-2i; Thu, 02 Oct 2008 13:18:32 +0000 Received: by twins (Postfix, from userid 0) id 60121181EBCAF; Thu, 2 Oct 2008 15:18:30 +0200 (CEST) Message-Id: <20081002131608.595165971@chello.nl> References: <20081002130504.927878499@chello.nl> User-Agent: quilt/0.46-1 Date: Thu, 02 Oct 2008 15:05:19 +0200 From: Peter Zijlstra To: Linus Torvalds , Andrew Morton , linux-kernel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, trond.myklebust@fys.uio.no, Daniel Lezcano , Pekka Enberg , Peter Zijlstra , Neil Brown , David Miller Cc: James Morris Subject: [PATCH 15/32] selinux: tag avc cache alloc as non-critical Content-Disposition: inline; filename=mm-selinux-emergency.patch X-Bad-Reply: References but no 'Re:' in Subject. Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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;