Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp509439pxk; Thu, 17 Sep 2020 08:45:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKcHyXI/Kb12SrQ8xrCh63qksGsAMqZOV8Ar12KPcfM2zpWt0el4G+ZGkfu1oVFyv/HfYa X-Received: by 2002:a17:906:cc8d:: with SMTP id oq13mr30798615ejb.280.1600357513313; Thu, 17 Sep 2020 08:45:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600357513; cv=none; d=google.com; s=arc-20160816; b=oBhzM7XaqC8mw80RNx4flRPJoppbCrXG5S5PXNLEsQWf3myPU78BWHlTdPMq97JNgZ ra0Mhl5EGxNzQ4wtIHOLCoxvPH//tEF2bnkdaa+5gZtSCV5Au7euCM2qqSvrQwISMBt+ ibHqgnz0qE1swReGkDc1Ek5i2N8/YxWQbtENzdjrhOpxYN5n+ZAjUqtKK3obMgBpsbog 2XNNnaICPMwTuLGQSBHJaE/raygvolwIgHL5iCrQ3ruXqN9uxyeOEjtPJGEOzsWwu84p XUPpPCpHh/LyHJBr7ptvlP59/6vmzDR3g0ZdKP63NPg0IK8zpxITWnjERLFqMeqLm67e 6PYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8Z59nl1ynYz7T8ZQQZFooEYzqOOLn6C4o6AlvTemzR0=; b=LEJEo3ypFVVjnvVrb8M3ihpqIm9BZ/xfdykkI3bzllNijMhNJqWTJDKxJAihNd65np N+YROHkoMn2V0KgvvCV5lYjjQsV8SkV3CDdCG+AH/JzUtOUjRlC6PwBWJ4p1qNGCn8La yKVBnvJy0fugdUMEOjXx3sOQaQjtDTzXUoEwsyA/6ZtmnoUS8YGavKlAvAL7RnzLL67E /d/K9p7LRDg6VvPM/8xfN4U9BKXRrOHHpVLYzF0Vzk5mHqN8jvfeYTmTRqaA5mw/16Xu xEu3+cVCDlm5B3MnKF00wRx/m2a5HbGbGObLabTxiERXIJ36OnLHM/M5Rm5x5B3fwwDq tvBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZwdX53dg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p18si208205ejd.537.2020.09.17.08.44.48; Thu, 17 Sep 2020 08:45:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ZwdX53dg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728085AbgIQPP1 (ORCPT + 99 others); Thu, 17 Sep 2020 11:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727926AbgIQPL0 (ORCPT ); Thu, 17 Sep 2020 11:11:26 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D45DFC061352; Thu, 17 Sep 2020 08:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description; bh=8Z59nl1ynYz7T8ZQQZFooEYzqOOLn6C4o6AlvTemzR0=; b=ZwdX53dghWPKXi4Rjx3Lj7vsSt VelfrbZiXezTGtoteiLyh5dCyQ1ailxO3l/o2S64HU8kJGyS51nzejMxg75SZwmgxeYsjrxlLJ4IK Pmkx1/NY5xtil421XUChskrxZKWwpeTkaAqC/hBmUOluMQq/C1i43VmFv6b9PRKlhY4ZhUEM7afEC qe+7yqIUGZIpxp4n/YCB6crwYH5t6fyWFNmCSQjr5uYIvzd7Ukxu4/f1U2+E+w4M8CstfyWNLo+hz xlYh7wPJtQqM1pYoiETsP2BQp9KyuJBErnDKrqdSOOqoa26HKmMxWosGkyvlSsIamje9UpiSCcDVk radcDH5w==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIvYj-0001Q6-TE; Thu, 17 Sep 2020 15:10:53 +0000 From: "Matthew Wilcox (Oracle)" To: linux-fsdevel@vger.kernel.org Cc: "Matthew Wilcox (Oracle)" , linux-mm@kvack.org, v9fs-developer@lists.sourceforge.net, linux-kernel@vger.kernel.org, linux-afs@lists.infradead.org, ceph-devel@vger.kernel.org, linux-cifs@vger.kernel.org, ecryptfs@vger.kernel.org, linux-um@lists.infradead.org, linux-mtd@lists.infradead.org, Richard Weinberger Subject: [PATCH 08/13] fuse: Tell the VFS that readpage was synchronous Date: Thu, 17 Sep 2020 16:10:45 +0100 Message-Id: <20200917151050.5363-9-willy@infradead.org> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200917151050.5363-1-willy@infradead.org> References: <20200917151050.5363-1-willy@infradead.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The fuse readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/fuse/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/fuse/file.c b/fs/fuse/file.c index 6611ef3269a8..7aa5626bc582 100644 --- a/fs/fuse/file.c +++ b/fs/fuse/file.c @@ -850,6 +850,8 @@ static int fuse_readpage(struct file *file, struct page *page) err = fuse_do_readpage(file, page); fuse_invalidate_atime(inode); + if (!err) + return AOP_UPDATED_PAGE; out: unlock_page(page); return err; -- 2.28.0