From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH v5 3/3] cgroups: make procs file writable Date: Fri, 24 Dec 2010 03:53:31 -0800 Message-ID: <20101224035331.b907b410.akpm@linux-foundation.org> References: <20100730235649.GA22644@ghc17.ghc.andrew.cmu.edu> <20100811054604.GA8743@ghc17.ghc.andrew.cmu.edu> <20100811054851.GD8743@ghc17.ghc.andrew.cmu.edu> <20101216002603.6741874a.akpm@linux-foundation.org> <20101224033352.GA7804@ghc17.ghc.andrew.cmu.edu> <20101224114500.GA18036@ghc17.ghc.andrew.cmu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20101224114500.GA18036-dJQ2lsn+DImqwBT9kiuFm8WGCVk0P7UB@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Ben Blum Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, Oleg Nesterov , Miao Xie , David Rientjes , Paul Menage , ebiederm-aS9lmoZGLiVWk0Htik3J/w@public.gmane.org List-Id: containers.vger.kernel.org On Fri, 24 Dec 2010 06:45:00 -0500 Ben Blum wrote: > > kmalloc() is allowed while holding a spinlock and NODEMASK_ALLOC() takes a > > gfp_flags argument for that reason. > > Ah, it's only with GFP_KERNEL and friends. So changing the uses in > cpuset_can_attach to GFP_ATOMIC would solve this concern, then? It would introduce an additional concern. GFP_ATOMIC is bad, for a number of reasons. The main one of which is that it is vastly less reliable than GFP_KERNEL. And making the cpuset code less reliable is a regression, no? Please try to find a better solution.