Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp493271pxk; Thu, 17 Sep 2020 08:22:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwdzXm8w162LPqZ/eQZ3efYIlMFDklOddoFsUacKf9uS+daFWEvwSDMzNpFWD02zbw0FTBn X-Received: by 2002:a50:d9c1:: with SMTP id x1mr34083912edj.283.1600356165636; Thu, 17 Sep 2020 08:22:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600356165; cv=none; d=google.com; s=arc-20160816; b=rEFum2UyUyIlZ05r2KpD3TMc2AQ4dyLYYrX979C90T6bsX8wIEqRtE/NWAHULgCL7U nbhz4hi98lkGraTVeJIjVVnsnuvPO9Ziydz9Wf4Drwe5z+bW0tQyK8t/dcBOUpAym5Ez DkD8umWpeSVhKCphPTiL2T3tAHY98f2ZkBcTsSzYx+cY8PUffnFkRjHj14lSZ2BCp7LN Zr8Ugik/Mtx9JPohPrHsOe7HQtbOZCCLBv20+/klk3AY8OTnwk4V6RiWUwfV6ih90PIn aqXKivchN1REYhvc+zqx18a1ChjLaj5qU2CGdw6oinOOq+IdcKouq1PP9RG2wllth7pM Y4VQ== 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=5bMB1AIyFb3Uo5KQX9JPM+gHHI0JgEg44Zm96s2wWSw=; b=IqSKSHuL6afwZRGDRW2tS5V3ug92B3AnGeLvZd1+O+vsaYzQiABxIUuX2ZVMSEpcNU ek4Tf6fz1m9A445XajypzbJq6C/XDRlf0wFLvihRDwIjcezHJVPVyKHjhnafJqc/IkAu Cx8HBo5CGvvFF4FOBhpM7NOC3R/Sxs845ODd7mZmvSjBqkfi1evqY6AFHPWSEWgG21F5 xOkef+oKRRs9gLeGfMFJsZ/gvlIHE/erMuL3ceEMg8ZDwExTix+J1SIVmOQHiX7NUL96 eNqSk/QVuuO+k4zUeTEiqq0/YI89tO9ogDBGLypi6Qdr03oam4BTMoOJLYqY54u+L4js Ci0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=rBA3BEed; 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 r9si156315ejd.280.2020.09.17.08.22.22; Thu, 17 Sep 2020 08:22:45 -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=rBA3BEed; 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 S1727338AbgIQPSZ (ORCPT + 99 others); Thu, 17 Sep 2020 11:18:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727955AbgIQPLm (ORCPT ); Thu, 17 Sep 2020 11:11:42 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9725C061353; 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=5bMB1AIyFb3Uo5KQX9JPM+gHHI0JgEg44Zm96s2wWSw=; b=rBA3BEedGxTEi6jjWgdFgG9hWD rAtzju3sIMBKwrAld+mQATn7QaELiGbXVXmda93yYxh+yGS2+0GwA617L8+TIuo3Jk8ylfnIXk1LL H0TvouglbVTFDzhXbSrLLJR8GAx9F0XOhb7d7HXvbImpXSlYZ+WbfMfJ7KLJgKaDDRuyCUS26Oz12 KxWnZX+HUeYpcjcOv6pJRJj8WdPq//IKqqm0bFb6zeal4AaAU3BZ/IPEj68NH4x1qS98+Qp9MtRPu cADf27TdVH4fZZTEQTThue/nS5onCBKmS8Q73H+9r1P8RaGh4WeCO+yzsvRmbQR5olV5anJvC0EkL rdhWhOtg==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIvYk-0001QE-67; Thu, 17 Sep 2020 15:10:54 +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 09/13] hostfs: Tell the VFS that readpage was synchronous Date: Thu, 17 Sep 2020 16:10:46 +0100 Message-Id: <20200917151050.5363-10-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 hostfs readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/hostfs/hostfs_kern.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/hostfs/hostfs_kern.c b/fs/hostfs/hostfs_kern.c index c070c0d8e3e9..c49221c09c4b 100644 --- a/fs/hostfs/hostfs_kern.c +++ b/fs/hostfs/hostfs_kern.c @@ -455,6 +455,8 @@ static int hostfs_readpage(struct file *file, struct page *page) out: flush_dcache_page(page); kunmap(page); + if (!ret) + return AOP_UPDATED_PAGE; unlock_page(page); return ret; } -- 2.28.0