Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752920Ab0HPJWr (ORCPT ); Mon, 16 Aug 2010 05:22:47 -0400 Received: from TYO202.gate.nec.co.jp ([202.32.8.206]:54351 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752056Ab0HPJWq (ORCPT ); Mon, 16 Aug 2010 05:22:46 -0400 Date: Mon, 16 Aug 2010 18:19:35 +0900 From: Naoya Horiguchi To: Christoph Lameter Cc: Andi Kleen , Andrew Morton , Mel Gorman , Wu Fengguang , "Jun'ichi Nomura" , linux-mm , LKML Subject: Re: [PATCH 0/9] Hugepage migration (v2) Message-ID: <20100816091935.GB3388@spritzera.linux.bs1.fc.nec.co.jp> References: <1281432464-14833-1-git-send-email-n-horiguchi@ah.jp.nec.com> <20100812075323.GA6112@spritzera.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1473 Lines: 39 On Fri, Aug 13, 2010 at 07:47:21AM -0500, Christoph Lameter wrote: > On Thu, 12 Aug 2010, Naoya Horiguchi wrote: > > > > Can you also avoid refcounts being increased during migration? > > > > Yes. I think this will be done in above-mentioned refactoring. > > Thats not what I meant. Can you avoid other processors increasing > refcounts (direct I/O etc?) on any page struct of the huge page while > migration is running? In my understanding, in current code "other processors increasing refcount during migration" can happen both in non-hugepage direct I/O and in hugepage direct I/O in the similar way (i.e. get_user_pages_fast() from dio_refill_pages()). So I think there is no specific problem to hugepage. Or am I missing your point? > > > This patch only handles migration under direct I/O. > > For the opposite (direct I/O under migration) it's not true. > > I wrote additional patches (later I'll reply to this email) > > for solving locking problem. Could you review them? > > Sure. > > > (Maybe these patches are beyond the scope of hugepage migration patch, > > so is it better to propose them separately?) > > Migration with known races is really not what we want in the kernel. Yes. Thanks, Naoya Horiguchi -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/