From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail6.bemta8.messagelabs.com (mail6.bemta8.messagelabs.com [216.82.243.55]) by kanga.kvack.org (Postfix) with ESMTP id E91996B00B5 for ; Wed, 23 Nov 2011 01:57:10 -0500 (EST) Received: by vbbfn1 with SMTP id fn1so1277608vbb.14 for ; Tue, 22 Nov 2011 22:57:09 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <1321960128-15191-1-git-send-email-gilad@benyossef.com> <1321960128-15191-5-git-send-email-gilad@benyossef.com> Date: Wed, 23 Nov 2011 08:57:09 +0200 Message-ID: Subject: Re: [PATCH v4 4/5] slub: Only IPI CPUs that have per cpu obj to flush From: Pekka Enberg Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Sender: owner-linux-mm@kvack.org List-ID: To: Gilad Ben-Yossef Cc: linux-kernel@vger.kernel.org, Chris Metcalf , Peter Zijlstra , Frederic Weisbecker , Russell King , linux-mm@kvack.org, Matt Mackall , Sasha Levin , Rik van Riel , Andi Kleen , Andrew Morton On Wed, Nov 23, 2011 at 8:23 AM, Pekka Enberg wrote: > On Tue, 22 Nov 2011, Gilad Ben-Yossef wrote: >> >> static void flush_all(struct kmem_cache *s) >> { >> - =A0 =A0 =A0 on_each_cpu(flush_cpu_slab, s, 1); >> + =A0 =A0 =A0 cpumask_var_t cpus; >> + =A0 =A0 =A0 struct kmem_cache_cpu *c; >> + =A0 =A0 =A0 int cpu; >> + >> + =A0 =A0 =A0 if (likely(zalloc_cpumask_var(&cpus, GFP_ATOMIC))) { > > __GFP_NOWARN too maybe? > >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 for_each_online_cpu(cpu) { >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 c =3D per_cpu_ptr(s->cpu_s= lab, cpu); >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (c->page) >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 cpumask_se= t_cpu(cpu, cpus); >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 } >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 on_each_cpu_mask(cpus, flush_cpu_slab, s, = 1); >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 free_cpumask_var(cpus); >> + =A0 =A0 =A0 } else >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 on_each_cpu(flush_cpu_slab, s, 1); >> } > > Acked-by: Pekka Enberg > > I can't take the patch because it depends on a new API introduced in the > first patch. > > I'm CC'ing Andrew. ...this time with the right email address. -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org