Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp4027638rwl; Sat, 7 Jan 2023 09:43:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXuNcYc306DZ5ZiTEqkv7n9L5ufiGZAJQmDh61B8peximKd+A0KwByHblc9OmflktScYPBds X-Received: by 2002:a62:d45b:0:b0:582:218b:651e with SMTP id u27-20020a62d45b000000b00582218b651emr26239304pfl.32.1673113415605; Sat, 07 Jan 2023 09:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673113415; cv=none; d=google.com; s=arc-20160816; b=t2PY+Y3rg5XbO6gR//oRGQZsD44DqxE+SymPnM7OfYM4/ZRygPeu1ay9YmpikVcnkx hjyZgb1JJWTdr/D7rx6mgeCThccE4LB4kwy1e4W0Cz26mEjGcV1+gJmGEpy/2EY3huDl RStU2+lolUNMZAZVV2/82Q2n6u85Uf/9T6n+VZvgVuFGkeaoH2ALs9vbGwKYeWw5UkFz kRmgW5kGrXYi1vhaxsmRtYqBYFpJNbBwIHhEQTj1ELqpZlL2ZdJ98qYZD/rH1N68SLy5 AZ4x+uQ4KfqVu2u7/NgKmp464igNJI8HkbyPBA9VXij2HiQB3IGn2O+3o5z8KFvH5W1+ bP7Q== 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:to:from :dkim-signature; bh=OB+c6SgvEFB45qvEloIZTIZqu+PKUJ7/D7pbiSY75fk=; b=b672OSt+D8KssP1BECqhtCe/Yy51HlCecYsJjm74tV2/H7UecDLI7qYIXGF11eV8Bu 13RoOJD5gKbbI5yqayiUo+kY2KUVz60yFx57RgsXPXvgJjwY6relCPsrQv3DUxwVipfi 6ne7izOVRGLEBvEgkxS+01mhIgBOdYEj3h7o3l6eBbw5pXX3tnUwwMWKqGjlSdC7IFLU M8mXp39EUZWAMIrStC6S5OXJE+cIaTKYjCxa5HXXxvQCq60w5xYxgOV8y6oo3VrvYMNy HtTYn2pn7xhS/PpVOR/3vCvtV2wDJyOB38+WBAerKzxZP2ky4haH66TQpBNxyYGKMNmI UnLw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lPdFfycD; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m21-20020a056a00081500b00580eef1f714si4640004pfk.265.2023.01.07.09.43.23; Sat, 07 Jan 2023 09:43:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lPdFfycD; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232422AbjAGRmL (ORCPT + 99 others); Sat, 7 Jan 2023 12:42:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232156AbjAGRmK (ORCPT ); Sat, 7 Jan 2023 12:42:10 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4210B240 for ; Sat, 7 Jan 2023 09:42:09 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 94CAD60B8C for ; Sat, 7 Jan 2023 17:42:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C3E6EC433D2 for ; Sat, 7 Jan 2023 17:42:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673113328; bh=EzSUmHPV0LS68WNrtNR1zMjdiuWsl5OOzjPLx81V0Ps=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lPdFfycDS+z6w36naE7TZdgqlXWWgfSa5DMWJLTWqkefmDdw+daWlM9OcgjC9HZs+ /HBPAqmSyPIjCkMrB+Am/xkJuQbUGDj9GLFn578zXBq6oo4uDKx2VUsKlfFFDuVpNo O5Jksoxo3nxTn5ltyn4XQYwexqawymxtoftaVsEtgMpOEFu6X2bglwvkGp4GjAjWEC l7B7aKesYSHBc3lhq99KypbjVYBEhtIxyozOvprSR109sHVQ07DJyv0jlPyf9N3zmY vhkVAH6WdV7Z+wzL7daQmk7VVpHdI+15uB5SbyyafV3plAXGe0aSKILYKPVFkC0zfD OC/XHClQO/rkQ== From: trondmy@kernel.org To: linux-nfs@vger.kernel.org Subject: [PATCH 01/17] NFS: Fix for xfstests generic/208 Date: Sat, 7 Jan 2023 12:36:19 -0500 Message-Id: <20230107173635.2025233-2-trondmy@kernel.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230107173635.2025233-1-trondmy@kernel.org> References: <20230107173635.2025233-1-trondmy@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust If the same page and data is being used for multiple requests, then ignore that when the request indicates we're reading from the start of the page. Signed-off-by: Trond Myklebust --- fs/nfs/pagelist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 317cedfa52bf..b4b3e80e64cd 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c @@ -920,6 +920,9 @@ int nfs_generic_pgio(struct nfs_pageio_descriptor *desc, req = nfs_list_entry(head->next); nfs_list_move_request(req, &hdr->pages); + if (req->wb_pgbase == 0) + last_page = NULL; + if (!last_page || last_page != req->wb_page) { pageused++; if (pageused > pagecount) -- 2.39.0