Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757471Ab0HQJkQ (ORCPT ); Tue, 17 Aug 2010 05:40:16 -0400 Received: from one.firstfloor.org ([213.235.205.2]:52777 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757227Ab0HQJkO (ORCPT ); Tue, 17 Aug 2010 05:40:14 -0400 Date: Tue, 17 Aug 2010 11:40:08 +0200 From: Andi Kleen To: Naoya Horiguchi Cc: Christoph Lameter , Andi Kleen , Andrew Morton , Mel Gorman , Wu Fengguang , "Jun'ichi Nomura" , linux-mm , LKML Subject: Re: [PATCH 0/9] Hugepage migration (v2) Message-ID: <20100817094007.GA18161@basil.fritz.box> References: <1281432464-14833-1-git-send-email-n-horiguchi@ah.jp.nec.com> <20100812075323.GA6112@spritzera.linux.bs1.fc.nec.co.jp> <20100816091935.GB3388@spritzera.linux.bs1.fc.nec.co.jp> <20100817023719.GC12736@spritzera.linux.bs1.fc.nec.co.jp> <20100817081817.GA28969@spritzera.linux.bs1.fc.nec.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100817081817.GA28969@spritzera.linux.bs1.fc.nec.co.jp> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 806 Lines: 20 > When get_user_pages_fast() is called before try_to_unmap(), > direct I/O code increments refcount on the target page. > Because this refcount is not associated to the mapping, > migration code will find remaining refcounts after try_to_unmap() > unmaps all mappings. Then refcount check decides migration to fail, > so direct I/O is continued safely. This would imply that direct IO can make migration fail arbitarily. Also not good. Should we add some retries, at least for the soft offline case? -Andi -- ak@linux.intel.com -- Speaking for myself only. -- 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/