Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp508176pxk; Thu, 17 Sep 2020 08:43:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsgdc72pWBXY9CPdPB9jwg3XjqaQfN+RTVEUjuo4oa91hiW/+L1dlj41lbW0bduR9OLS+G X-Received: by 2002:a17:906:7d0d:: with SMTP id u13mr32754505ejo.448.1600357401396; Thu, 17 Sep 2020 08:43:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600357401; cv=none; d=google.com; s=arc-20160816; b=vnudmVPBiEhUk/GmuFl4vasGiXqj1kgMT5vM8wiqFuop53L+xQbMAnsfyepBVLkLox eUZpgpTpNZv2ZxnsWp82l6uXShYRlTVVNMU7awMZwNKFZngnKyvBsmm4wOHgzUJsTHD0 PszaSf3N90zuADK5ksosNF0edFu62N8WX+Hivq60UfzPDQBkg+HuiqGPgGJM7HlnWQS1 ua+iGUOPN/Lmoa5K9ibQ+H3VVlLq3JcO1LHTse5cK4PYK+eXbaJFT+yHVK98cL9sa68V 7My7EgChK/bHLVnK4VjQPDSoly7WNmKwTLh59848mw/0nMHC64VXwcBm9jAdzgMCyVoh 5JQg== 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=7bp7tBDREj0/quRwoGKFhcM4IA6X+ak+6znUWRbIy7w=; b=F1sSVIpmpj/asbypP0Gvi3jSHwQZ8pKq7jUbjeRRsUqyAPOFyt237rf67158MaGrnc 329ppJDF55lzZmB3NqSrcjvwQta+sJ0BvGs4YCaGCRPb8LVflJiDtwhSHBc9Mj55UpWo eC9EaggFHliYxa1CMEGXQJTLy7fmlLwbWGfpePrv8V8cYwYJ8SwQmc8ekHQzH2tayKic OfeFkMhmHmmrBvc4+qh4refJHMUjLEOYgcuvBkf53C1gJdWRraYTTQPUJeDgr1kEe+hh LOhHwtx5i3u59OzuYyZ4q9YYnobgs7HhgngRBuSuBymU6WBlXyr5EXofMmDxD+6LZWi2 eg9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Ab937xav; 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 mh6si153441ejb.243.2020.09.17.08.42.56; Thu, 17 Sep 2020 08:43:21 -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=Ab937xav; 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 S1728096AbgIQPVJ (ORCPT + 99 others); Thu, 17 Sep 2020 11:21:09 -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 S1727960AbgIQPLm (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 4FE7FC0612F2; Thu, 17 Sep 2020 08:10:57 -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=7bp7tBDREj0/quRwoGKFhcM4IA6X+ak+6znUWRbIy7w=; b=Ab937xavvtVmodPI2thUSGdAlk XIba4t3pVWHQS6GXPdgChNV++4m2pWszb+TrwGgDuHl9lLSuinZjp2hFDRXec+62BpUjm82laGwbh JN/W0bXPQaaE0Q5jmTXDfMNCxo+N33xx38Z5TH1Ekmq6LWsMu3AaAKlJNv2F36kXaJ1bzo4y69HPF L+XH8pTHAvL0tRdG4imOcEeu6JMtw6zPlA/0bm/X/VAPExraituJ0c+ceD9lLq4MB6OiwXHjnFLZM JeoXS++sD/pEEDMkBpD7WdUDOHe1HIUOdAEJpCDDg19BRjFTtuPDBSOja8O+dcKYbSjRiBIs5WHms Nj8/IOiw==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIvYl-0001Qv-Jz; Thu, 17 Sep 2020 15:10:55 +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 13/13] vboxsf: Tell the VFS that readpage was synchronous Date: Thu, 17 Sep 2020 16:10:50 +0100 Message-Id: <20200917151050.5363-14-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 vboxsf inline data readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/vboxsf/file.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fs/vboxsf/file.c b/fs/vboxsf/file.c index c4ab5996d97a..c2a144e5cb5a 100644 --- a/fs/vboxsf/file.c +++ b/fs/vboxsf/file.c @@ -228,6 +228,8 @@ static int vboxsf_readpage(struct file *file, struct page *page) } kunmap(page); + if (!err) + return AOP_UPDATED_PAGE; unlock_page(page); return err; } -- 2.28.0