From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932653Ab1IAX3H (ORCPT ); Thu, 1 Sep 2011 19:29:07 -0400 Received: from smtp1.linux-foundation.org ([140.211.169.13]:52420 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932506Ab1IAX3E (ORCPT ); Thu, 1 Sep 2011 19:29:04 -0400 Date: Thu, 1 Sep 2011 16:28:08 -0700 From: Andrew Morton To: Andrea Arcangeli Cc: Minchan Kim , Michel Lespinasse , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Hugh Dickins , Johannes Weiner , Rik van Riel , Mel Gorman , KOSAKI Motohiro , Shaohua Li , "Paul E. McKenney" , Andi Kleen Subject: Re: [PATCH] thp: tail page refcounting fix #5 Message-Id: <20110901162808.80a2117c.akpm@linux-foundation.org> In-Reply-To: <20110901152417.GF10779@redhat.com> References: <20110824000914.GH23870@redhat.com> <20110824002717.GI23870@redhat.com> <20110824133459.GP23870@redhat.com> <20110826062436.GA5847@google.com> <20110826161048.GE23870@redhat.com> <20110826185430.GA2854@redhat.com> <20110827094152.GA16402@google.com> <20110827173421.GA2967@redhat.com> <20110901152417.GF10779@redhat.com> X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Sep 2011 17:24:17 +0200 Andrea Arcangeli wrote: > Ideally direct-io should stop calling get_page() on pages > returned by get_user_pages(). Yeah. get_user_pages() is sufficient. Ideally we should be able to undo the get_user_pages() get_page() from within the IO completion interrupt and we're done. Cc Andi, who is our resident dio tweaker ;)