From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: * X-Spam-Status: No, score=1.9 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_DBL_ABUSE_MALW autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4B81BC33C9E for ; Thu, 30 Jan 2020 07:26:13 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id E5ECF20661 for ; Thu, 30 Jan 2020 07:26:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="FComybUB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E5ECF20661 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 6D90B6B0320; Thu, 30 Jan 2020 02:26:11 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 6890C6B0321; Thu, 30 Jan 2020 02:26:11 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 59F336B0322; Thu, 30 Jan 2020 02:26:11 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0114.hostedemail.com [216.40.44.114]) by kanga.kvack.org (Postfix) with ESMTP id 416956B0320 for ; Thu, 30 Jan 2020 02:26:11 -0500 (EST) Received: from smtpin08.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 0C1148248047 for ; Thu, 30 Jan 2020 07:26:11 +0000 (UTC) X-FDA: 76433466942.08.foot26_18c41f1470e41 X-HE-Tag: foot26_18c41f1470e41 X-Filterd-Recvd-Size: 2918 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) by imf24.hostedemail.com (Postfix) with ESMTP for ; Thu, 30 Jan 2020 07:26:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=RPPsRlIh7a3GIi8RqNtoOhkrf/5qMif620lE3PkTLu8=; b=FComybUBSpIsVsPCMSjmNCnBS 9jLghFjTprEBfNjFjotn0sZjFkUk4e5TRB/GGvxDYm99qbUJ5kRnW4GEyI9GkI9uGWpiqyGnV7sA2 lqc2Ee9r0a6z21o47otyJKWgncd69lhhD4PVvN8M8lGZYX8sqZe0Y7kofXKTevE32P7oLZRCWorlO IIRq3TqCkooTcnzMioOCtxntyO1r8CU6MrNiyAJHmE+uQFB5Ytb6lvfa6+zyS8e6kqpYXl10+E8ui Er77KzutKqQDNgw32ehmvYUvxjTFbz+C1plaGsnQ/Xa5oOT0l//Xq9xZP7pjzIzDn2gq/fAlOr86o BKECudI5g==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1ix4DF-0001Z7-B0; Thu, 30 Jan 2020 07:26:05 +0000 Date: Wed, 29 Jan 2020 23:26:05 -0800 From: Matthew Wilcox To: Miklos Szeredi Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/12] fuse: Convert from readpages to readahead Message-ID: <20200130072605.GJ6615@bombadil.infradead.org> References: <20200125013553.24899-1-willy@infradead.org> <20200125013553.24899-12-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Jan 29, 2020 at 11:50:37AM +0100, Miklos Szeredi wrote: > On Sat, Jan 25, 2020 at 2:36 AM Matthew Wilcox wrote: > > > > From: "Matthew Wilcox (Oracle)" > > > > Use the new readahead operation in fuse. Switching away from the > > read_cache_pages() helper gets rid of an implicit call to put_page(), > > so we can get rid of the get_page() call in fuse_readpages_fill(). > > We can also get rid of the call to fuse_wait_on_page_writeback() as > > this page is newly allocated and so cannot be under writeback. > > Not sure. fuse_wait_on_page_writeback() waits not on the page but the > byte range indicated by the index. > > Fuse writeback goes through some hoops to prevent reclaim related > deadlocks, which means that the byte range could still be under > writeback, yet the page belonging to that range be already reclaimed. > This fuse_wait_on_page_writeback() is trying to serialize reads > against such writes. Thanks. I'll put that back in.