Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp492722pxk; Thu, 17 Sep 2020 08:22:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwS+8tcYMRReDrVJBGUuj3LT6vRrY4JxTAdYS+NWRxtZzpbNv+KZFbU1fdeGla0knMb0T9g X-Received: by 2002:a17:906:d965:: with SMTP id rp5mr30015275ejb.364.1600356122408; Thu, 17 Sep 2020 08:22:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600356122; cv=none; d=google.com; s=arc-20160816; b=kvfQ53tCfIt/Ec+nLsv2yUJ+HW8V+RKCNIMUnsael12+Y30oAQZGjCGGUhEzBvJkSs yrWO1x6g7oosqd2QPyUda2i2ZYANLkPHqWcY/3XBQPUXku+14ZIf4PvWibXowW43EQ76 kT0gdVDgcvKfzEOZzpzTNN3my8uKzhqw9wiqcIViMHDXef9ZKzIYeLflrSeI6TQTkR1d ELnQBbIFcVoWR1OWJ5U4bX4ckFISn69PFP02DFELvfXiKw9eYBvdhcMc3ANhUfvwhgr6 qSIjUC5Jq9cVo1pN/+vkuO3sGZEgVV6DkYzz2Q1rpg8D7Rb3sackLlfUvfjh0ssY+jnU FMqQ== 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=On43e4GnGO79fh9MGOiH3t2swuO0c44z7mV7G3PjPdg=; b=HpOFWOsGS9kbK2Do8FTVk1z23t5gGL+Avk0Ga5p/bf+SqFreFiw3K4HSt1lI7ZwZ6O 77XOqnfW829HvxIMacnHrHULgq2cuI6fTTrFAJuc2+4tRJ2JfsYSenFai3VntGKq14Xu vq+NsELKANAz3snRDhtXU6ki91pW9hIAT+1LipzdpsHBp6I9b7UbGdd48rg1UU9o6Ben m8XcLZrxOInyujf+0Gxpxv8IjkV/SNlb4AtUl51EpONeSDOdplUo7eSl4cB3inNStC4F /lJwWGuWOvWZ1WiJJKdCOxu0RDYgUjBpNyeuOv5qOl/im+6lVIpzOqLps8Nl8U4TrPvG hPAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=JpgNMgAM; 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 y17si131121ejq.737.2020.09.17.08.21.38; Thu, 17 Sep 2020 08:22:02 -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=JpgNMgAM; 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 S1727481AbgIQPUB (ORCPT + 99 others); Thu, 17 Sep 2020 11:20:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727962AbgIQPLm (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 70A06C06121E; Thu, 17 Sep 2020 08:11:03 -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=On43e4GnGO79fh9MGOiH3t2swuO0c44z7mV7G3PjPdg=; b=JpgNMgAMtP37e2z1ODJoACSlyK ZQFRFUMyW6V2MeLhpTmyJAeub1VQHVFoEFbrpdAuEICFyc0AHXjewrnjzRXfMEuzWL7E+dyYGabyd A1RS7Tonh20I00pQtRnWsnK+nfLGfgwVuwmiwJCERV56YcrH+xTkJxvoSXyxbudjVRNVQZQPsJGDw /GSHYP46vWHoYPnjADmCSGZO9olC+ksUnB6Jcrds+VDufa4bFLZCIQpaFfLSIplfPdvT9nrFF6G4U PHAGD4QvI88MFyYVX2M35YIWXErf0ffDTV1XoWhrPUUGdig34Sj0jR3s2VZV69Z9EMEt8hjqRRV1T zvgKjiwA==; Received: from willy by casper.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kIvYi-0001PW-ND; Thu, 17 Sep 2020 15:10:52 +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 03/13] afs: Tell the VFS that readpage was synchronous Date: Thu, 17 Sep 2020 16:10:40 +0100 Message-Id: <20200917151050.5363-4-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 afs readpage implementation was already synchronous, so use AOP_UPDATED_PAGE to avoid cycling the page lock. Signed-off-by: Matthew Wilcox (Oracle) --- fs/afs/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/afs/file.c b/fs/afs/file.c index 6f6ed1605cfe..8f15305b6574 100644 --- a/fs/afs/file.c +++ b/fs/afs/file.c @@ -367,7 +367,8 @@ int afs_page_filler(void *data, struct page *page) BUG_ON(PageFsCache(page)); } #endif - unlock_page(page); + _leave(" = AOP_UPDATED_PAGE"); + return AOP_UPDATED_PAGE; } _leave(" = 0"); -- 2.28.0