From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx116.postini.com [74.125.245.116]) by kanga.kvack.org (Postfix) with SMTP id 947E26B00C9 for ; Thu, 21 Jun 2012 08:42:40 -0400 (EDT) Date: Thu, 21 Jun 2012 13:42:35 +0100 From: Mel Gorman Subject: Re: [patch 3.5-rc3] mm, mempolicy: fix mbind() to do synchronous migration Message-ID: <20120621124235.GN4011@suse.de> References: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: David Rientjes Cc: Linus Torvalds , Andrew Morton , KOSAKI Motohiro , linux-kernel@vger.kernel.org, linux-mm@kvack.org On Wed, Jun 20, 2012 at 06:00:12PM -0700, David Rientjes wrote: > If the range passed to mbind() is not allocated on nodes set in the > nodemask, it migrates the pages to respect the constraint. > > The final formal of migrate_pages() is a mode of type enum migrate_mode, > not a boolean. do_mbind() is currently passing "true" which is the > equivalent of MIGRATE_SYNC_LIGHT. This should instead be MIGRATE_SYNC > for synchronous page migration. > > Signed-off-by: David Rientjes Acked-by: Mel Gorman -- 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/ . Don't email: email@kvack.org