From mboxrd@z Thu Jan 1 00:00:00 1970 From: Francis Moreau Subject: Re: Where does a process wait after requesting some data file ? Date: Sat, 17 Jan 2009 23:07:43 +0100 Message-ID: References: <38b2ab8a0901150550w7106f6ebwa7ae36f6f0d9ad3d@mail.gmail.com> <20090115140013.GC29283@parisc-linux.org> <38b2ab8a0901160830w4146f23eud562f4a9dd956184@mail.gmail.com> <20090117210617.GA30719@parisc-linux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-fsdevel@vger.kernel.org To: Matthew Wilcox Return-path: Received: from fg-out-1718.google.com ([72.14.220.156]:29819 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753597AbZAQWHw (ORCPT ); Sat, 17 Jan 2009 17:07:52 -0500 Received: by fg-out-1718.google.com with SMTP id 19so1055495fgg.17 for ; Sat, 17 Jan 2009 14:07:50 -0800 (PST) In-Reply-To: <20090117210617.GA30719@parisc-linux.org> (Matthew Wilcox's message of "Sat\, 17 Jan 2009 14\:06\:18 -0700") Sender: linux-fsdevel-owner@vger.kernel.org List-ID: Matthew Wilcox writes: > On Fri, Jan 16, 2009 at 05:30:12PM +0100, Francis Moreau wrote: >> > As the comment says, when the read finishes, it will unlock the page >> > and the reader will continue. >> >> I expect that the comment you're talking about is this one in >> do_generic_file_read(): >> >> page_not_up_to_date: >> /* Get exclusive access to the page ... */ > > I meant this one: > > readpage: > /* Start the actual read. The read will unlock the page. */ > Well, if I read the code correctly, this is executed if page_cache_sync_readahead() failed which is not the 'normal' path. Thanks -- Francis