From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mel Gorman Subject: Re: [PATCH v5 7/8] mm: Only IPI CPUs to drain local pages if they exist Date: Thu, 5 Jan 2012 14:20:17 +0000 Message-ID: <20120105142017.GA27881@csn.ul.ie> References: <1325499859-2262-1-git-send-email-gilad@benyossef.com> <1325499859-2262-8-git-send-email-gilad@benyossef.com> <4F033EC9.4050909@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Cc: Gilad Ben-Yossef , linux-kernel@vger.kernel.org, Chris Metcalf , Peter Zijlstra , Frederic Weisbecker , Russell King , linux-mm@kvack.org, Pekka Enberg , Matt Mackall , Sasha Levin , Rik van Riel , Andi Kleen , Andrew Morton , Alexander Viro , linux-fsdevel@vger.kernel.org, Avi Kivity To: KOSAKI Motohiro Return-path: Content-Disposition: inline In-Reply-To: <4F033EC9.4050909@gmail.com> Sender: owner-linux-mm@kvack.org List-Id: linux-fsdevel.vger.kernel.org On Tue, Jan 03, 2012 at 12:45:45PM -0500, KOSAKI Motohiro wrote: > > void drain_all_pages(void) > > { > > - on_each_cpu(drain_local_pages, NULL, 1); > > + int cpu; > > + struct per_cpu_pageset *pcp; > > + struct zone *zone; > > + > > get_online_cpu() ? > Just a separate note; I'm looking at some mysterious CPU hotplug problems that only happen under heavy load. My strongest suspicion at the moment that the problem is related to on_each_cpu() being used without get_online_cpu() but you cannot simply call get_online_cpu() in this path without causing deadlock. If/when I get a patch that can complete a CPU hotplug stress test successfully, I'll post it. It'll collide with this series but it should be manageable. -- Mel Gorman SUSE Labs -- 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