From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail143.messagelabs.com (mail143.messagelabs.com [216.82.254.35]) by kanga.kvack.org (Postfix) with SMTP id E95736B008C for ; Thu, 28 Jan 2010 10:58:28 -0500 (EST) Date: Thu, 28 Jan 2010 16:57:58 +0100 From: Andrea Arcangeli Subject: Re: [PATCH 04 of 31] update futex compound knowledge Message-ID: <20100128155758.GF1217@random.random> References: <948638099c17d3da3d6f.1264513919@v2.random> <20100126183706.GI16468@csn.ul.ie> <20100127194504.GA13766@random.random> <20100128153357.GC7139@csn.ul.ie> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100128153357.GC7139@csn.ul.ie> Sender: owner-linux-mm@kvack.org To: Mel Gorman Cc: linux-mm@kvack.org, Marcelo Tosatti , Adam Litke , Avi Kivity , Izik Eidus , Hugh Dickins , Nick Piggin , Rik van Riel , Andi Kleen , Dave Hansen , Benjamin Herrenschmidt , Ingo Molnar , Mike Travis , KAMEZAWA Hiroyuki , Christoph Lameter , Chris Wright , Andrew Morton , bpicco@redhat.com, Christoph Hellwig , KOSAKI Motohiro List-ID: On Thu, Jan 28, 2010 at 03:33:57PM +0000, Mel Gorman wrote: > On Wed, Jan 27, 2010 at 08:45:04PM +0100, Andrea Arcangeli wrote: > > On Tue, Jan 26, 2010 at 06:37:07PM +0000, Mel Gorman wrote: > > > I'm not fully getting from the changelog why the second round through > > > __get_user_pages_fast() is necessary or why the write parameter is > > > unconditionally 1. > > > > The write parameter is unconditionally to 1 because the first gup_fast > > already existing had it unconditionally set to 1, it's not relevant > > with this change. > > > > hmm, really? I was seeing rw == VERIFY_WRITE rather than an > unconditional. I'll double check the kernel version I'm reading against > when I read the next review. No problem ;) and now I get why asked it, in my current version (last pull) the code is: again: err = get_user_pages_fast(address, 1, 1, &page); Clearly if the above would have been rw == VERIFY_WRITE I would have not used 1 in the __ irq disabled callout. > Do please. That explanation helps a lot. Glad it helps despite my broken english eheh, already included in #8 submit ;) -- 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