login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
July
»
15
Re: [PATCH -mmotm 12/30] selinux: tag avc cache alloc as non-critical
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Xiaotian Feng
Subject:
Re: [PATCH -mmotm 12/30] selinux: tag avc cache alloc as non-critical
Date: Thursday, July 15, 2010 - 4:51 am
On 07/13/2010 06:55 PM, Mitchell Erblich wrote:
quoted text
> > On Jul 13, 2010, at 3:19 AM, Xiaotian Feng wrote: > >> From 6c3a91091b2910c23908a9f9953efcf3df14e522 Mon Sep 17 00:00:00 2001 >> From: Xiaotian Feng<dfeng@redhat.com> >> Date: Tue, 13 Jul 2010 11:02:41 +0800 >> Subject: [PATCH 12/30] selinux: tag avc cache alloc as non-critical >> >> 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<a.p.zijlstra@chello.nl> >> Signed-off-by: Suresh Jayaraman<sjayaraman@suse.de> >> Signed-off-by: Xiaotian Feng<dfeng@redhat.com> >> --- >> security/selinux/avc.c | 2 +- >> 1 files changed, 1 insertions(+), 1 deletions(-) >> >> diff --git a/security/selinux/avc.c b/security/selinux/avc.c >> index 3662b0f..9029395 100644 >> --- a/security/selinux/avc.c >> +++ b/security/selinux/avc.c >> @@ -284,7 +284,7 @@ static struct avc_node *avc_alloc_node(void) >> { >> 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; >> >> -- >> 1.7.1.1 >> > > Why not just replace GFP_ATOMIC with GFP_NOWAIT? > > This would NOT consume the valuable last pages.
But replace GFP_ATOMIC with GFP_NOWAIT can not prevent avc_alloc_node consume reserved pages.
quoted text
> > Mitchell Erblich >> -- >> To unsubscribe from this list: send the line "unsubscribe netdev" in >> the body of a message to
majordomo@vger.kernel.org
>> More majordomo info at
http://vger.kernel.org/majordomo-info.html
> >
--
unsubscribe notice
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/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH -mmotm 00/30] [RFC] swap over nfs -v21
, Xiaotian Feng
, (Tue Jul 13, 3:16 am)
[PATCH -mmotm 01/30] mm: serialize access to min_free_kbytes
, Xiaotian Feng
, (Tue Jul 13, 3:17 am)
[PATCH -mmotm 02/30] Swap over network documentation
, Xiaotian Feng
, (Tue Jul 13, 3:17 am)
[PATCH -mmotm 03/30] mm: expose gfp_to_alloc_flags()
, Xiaotian Feng
, (Tue Jul 13, 3:17 am)
[PATCH -mmotm 04/30] mm: tag reseve pages
, Xiaotian Feng
, (Tue Jul 13, 3:17 am)
[PATCH -mmotm 05/30] mm: sl[au]b: add knowledge of reserve ...
, Xiaotian Feng
, (Tue Jul 13, 3:17 am)
[PATCH -mmotm 06/30] mm: kmem_alloc_estimate()
, Xiaotian Feng
, (Tue Jul 13, 3:17 am)
[PATCH -mmotm 07/30] mm: allow PF_MEMALLOC from softirq co ...
, Xiaotian Feng
, (Tue Jul 13, 3:18 am)
[PATCH -mmotm 08/30] mm: emergency pool
, Xiaotian Feng
, (Tue Jul 13, 3:18 am)
[PATCH -mmotm 09/30] mm: system wide ALLOC_NO_WATERMARK
, Xiaotian Feng
, (Tue Jul 13, 3:18 am)
[PATCH -mmotm 10/30] mm: __GFP_MEMALLOC
, Xiaotian Feng
, (Tue Jul 13, 3:18 am)
[PATCH -mmotm 11/30] mm: memory reserve management
, Xiaotian Feng
, (Tue Jul 13, 3:18 am)
[PATCH -mmotm 12/30] selinux: tag avc cache alloc as non-c ...
, Xiaotian Feng
, (Tue Jul 13, 3:19 am)
[PATCH -mmotm 13/30] net: packet split receive api
, Xiaotian Feng
, (Tue Jul 13, 3:19 am)
[PATCH -mmotm 14/30] net: sk_allocation() - concentrate so ...
, Xiaotian Feng
, (Tue Jul 13, 3:19 am)
[PATCH -mmotm 15/30] netvm: network reserve infrastructure
, Xiaotian Feng
, (Tue Jul 13, 3:19 am)
[PATCH -mmotm 16/30] netvm: INET reserves
, Xiaotian Feng
, (Tue Jul 13, 3:19 am)
[PATCH -mmotm 17/30] netvm: hook skb allocation to reserves
, Xiaotian Feng
, (Tue Jul 13, 3:20 am)
[PATCH -mmotm 18/30] netvm: filter emergency skbs
, Xiaotian Feng
, (Tue Jul 13, 3:20 am)
[PATCH -mmotm 19/30] netvm: prevent a stream specific deadlock
, Xiaotian Feng
, (Tue Jul 13, 3:20 am)
[PATCH -mmotm 20/30] netfilter: NF_QUEUE vs emergency skbs
, Xiaotian Feng
, (Tue Jul 13, 3:20 am)
[PATCH -mmotm 21/30] netvm: skb processing
, Xiaotian Feng
, (Tue Jul 13, 3:20 am)
[PATCH -mmotm 22/30] mm: add support for non block device ...
, Xiaotian Feng
, (Tue Jul 13, 3:20 am)
[PATCH -mmotm 23/30] mm: methods for teaching filesystems ...
, Xiaotian Feng
, (Tue Jul 13, 3:21 am)
[PATCH -mmotm 24/30] nfs: teach the NFS client how to trea ...
, Xiaotian Feng
, (Tue Jul 13, 3:21 am)
[PATCH -mmotm 25/30] nfs: disable data cache revalidation ...
, Xiaotian Feng
, (Tue Jul 13, 3:21 am)
[PATCH -mmotm 26/30] nfs: enable swap on NFS
, Xiaotian Feng
, (Tue Jul 13, 3:21 am)
[PATCH -mmotm 27/30] nfs: fix various memory recursions po ...
, Xiaotian Feng
, (Tue Jul 13, 3:21 am)
[PATCH -mmotm 28/30] build fix for skb_emergency_protocol
, Xiaotian Feng
, (Tue Jul 13, 3:22 am)
[PATCH -mmotm 29/30] fix null pointer deref in swap_entry_free
, Xiaotian Feng
, (Tue Jul 13, 3:22 am)
[PATCH -mmotm 30/30] fix mess up on swap with multi files ...
, Xiaotian Feng
, (Tue Jul 13, 3:22 am)
Re: [PATCH -mmotm 12/30] selinux: tag avc cache alloc as n ...
, Mitchell Erblich
, (Tue Jul 13, 3:55 am)
Re: [PATCH -mmotm 00/30] [RFC] swap over nfs -v21
, Américo Wang
, (Tue Jul 13, 5:53 am)
Re: [PATCH -mmotm 05/30] mm: sl[au]b: add knowledge of res ...
, Pekka Enberg
, (Tue Jul 13, 1:33 pm)
Re: [PATCH -mmotm 12/30] selinux: tag avc cache alloc as n ...
, Xiaotian Feng
, (Thu Jul 15, 4:51 am)
Re: [PATCH -mmotm 05/30] mm: sl[au]b: add knowledge of res ...
, Xiaotian Feng
, (Thu Jul 15, 5:37 am)
Re: [PATCH -mmotm 05/30] mm: sl[au]b: add knowledge of res ...
, Neil Brown
, (Mon Aug 2, 6:44 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
swhiteho
[PATCH 42/51] [GFS2] Move inode deletion out of blocking_cb
FUJITA Tomonori
Re: [Scst-devel] Integration of SCST in the mainstream Linux kernel
Matthew
Re: Linux 2.6.25
Alex Riesen
Re: [PATCH 4/7] lib: Introduce strnstr()
Alexey Dobriyan
Re: [2.6.22.2 review 09/84] Fix rfkill IRQ flags.
git
:
Mike Miller
git message
David Bremner
Commit f5bbc322 to git broke pre-commit hooks which read stdin
Stefan Richter
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Jeff King
Re: [PATCH] t7004: test that "git-tag -u" implies "-s"
Christian MICHON
Re: VCS comparison table
git-commits-head
:
Linux Kernel Mailing List
i915: Don't whine when pci_enable_msi() fails.
Linux Kernel Mailing List
usb: musb: fix hanging when rmmod gadget driver
Linux Kernel Mailing List
[ARM] 4671/1: ep93xx: remove obsolete gpio_line_* operations
Linux Kernel Mailing List
NFSv4: Move error handling out of the delegation generic code
Linux Kernel Mailing List
Staging: wlan-ng: Move wlan_mkprintstr() and wlan_hexchar() macros into prism2sta.c
linux-netdev
:
Arnaldo Carvalho de Melo
Re: [PATCH 06/37] dccp: Limit feature negotiation to connection setup phase
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Badalian Vyacheslav
Re: tc filter flow hash question
Parav Pandit
ip6 route output() and ip_route_output_key() by drivers
Jarek Poplawski
Re: tc filter flow hash question
openbsd-misc
:
Vikas N Kumar
Re: Singularity OS
Marco Peereboom
Re: OpenBSD culture?
ropers
Re: Real men don't attack straw men
"RALOVICH, Kristóf"
Re: thinkpad windows refund
Kevin
Re: uvm_mapent_alloc: out of static map entries on 4.3 i386
Colocation donated by:
Syndicate