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 C8A266B002D for ; Mon, 28 Nov 2011 14:49:04 -0500 (EST) Message-ID: <1322509712.2921.158.camel@twins> Subject: Re: [PATCH 3/5] uprobes: introduce uprobe_xol_slots[NR_CPUS] From: Peter Zijlstra Date: Mon, 28 Nov 2011 20:48:32 +0100 In-Reply-To: <20111128190714.GD4602@redhat.com> References: <20111118110631.10512.73274.sendpatchset@srdronam.in.ibm.com> <20111128190614.GA4602@redhat.com> <20111128190714.GD4602@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 Sender: owner-linux-mm@kvack.org List-ID: To: Oleg Nesterov Cc: Srikar Dronamraju , Linus Torvalds , Andrew Morton , LKML , Linux-mm , Ingo Molnar , Andi Kleen , Christoph Hellwig , Steven Rostedt , Roland McGrath , Thomas Gleixner , Masami Hiramatsu , Arnaldo Carvalho de Melo , Anton Arapov , Ananth N Mavinakayanahalli , Jim Keniston , Stephen Wilson On Mon, 2011-11-28 at 20:07 +0100, Oleg Nesterov wrote: > + UPROBE_XOL_FIRST_PAGE =3D UPROBE_XOL_LAST_PAGE > + + NR_CPUS * UPROBES_XOL_SLOT_BYTES / PAGE_S= IZE,=20 I think that wants to be:=20 + DIV_ROUND_UP(NR_CPUS * UPROBES_XOL_SLOT_BYTES, PAGE_SIZE); otherwise you'll end up with 0 pages for UP and the sort. -- 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