Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4169788rdh; Tue, 28 Nov 2023 13:59:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IEDVa4pAAhT+LFv97k5US9PV8xdpdDvKDXTFH0vzPqsVvkLjXLsaqFtjXRdKBNwGQzTtedb X-Received: by 2002:a17:90b:4c05:b0:27d:3a3e:3a45 with SMTP id na5-20020a17090b4c0500b0027d3a3e3a45mr15414683pjb.44.1701208777611; Tue, 28 Nov 2023 13:59:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701208777; cv=none; d=google.com; s=arc-20160816; b=lEckhQWcf+aX3SMGBCGEKAySdI6LEoO2eFZbdEa8cTRmN18QIJX8I8YAMOsEi8a5Pi Ngh2VnE7n+SfvXzcAzCoNOMJ/x6qzGFWJFBt+MF6ZUSGgYMlZwRaLhSHyeMvukTrr+T2 E+7tQvRwOVcKyk9fSTUk97xyO0yqqSmLbaNdCv0PRUZRJh2EPAu0204QOF0x356oGJLl FmQhXdlHoAKr9vMoksou7/FjPTPOQOpMHdT+oBj7xEmvS6FRaOgvuV6Z6tltbs/7B1Jj XY7T5zGi3PmA3TIdOxUBqHR3mId4Qd8tuiHhhQxvbH/cd9eKm00NNj8aw0PGfLDR6UO1 nzTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:user-agent:message-id:date:cc:to :from:subject:dkim-signature; bh=nGsqF4+XqXXvhuRu8Q1WxD1JgeQPO67emmLGulHsflo=; fh=xkJJ9G/tfqFUcIeP82drScMuFzbH6I4bp3/iFRpdd9E=; b=jVM12/NJLncxxfDC+TAUnkF3KzCfhOBxIc8pF3Cw+EurahQ7WrLjzgaC9kciFEkR4P ayFJANWc9QWn5khFFJOdjLJUkU2Eumt9kspANU+D3d4u8WZmImC77mtgAx4kme2SSCCm Mq+SrMe7Hv6j5rXPPYsyH1uZB5yfMwrUGIgDJuDfvALjNlOzob1T7RRDY7bHT98M6MiQ LXHV17JTb0FwKBspZgcT67vjhUVxz5+QpwwiDT6K1iCZDFL4a9cpDjALf4uattpRn2ZC rBp587CXKUGz6hGdaEN4HIHRgt+WxPFD1bTs5dfT//1jDPfeiv20BR9/qzl4HJNddj7F tBFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j+PFWgt9; spf=pass (google.com: domain of linux-nfs+bounces-139-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id mp11-20020a17090b190b00b002858a924dcbsi10913880pjb.88.2023.11.28.13.59.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 13:59:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-139-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j+PFWgt9; spf=pass (google.com: domain of linux-nfs+bounces-139-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-nfs+bounces-139-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4ABA42825CD for ; Tue, 28 Nov 2023 21:59:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E52D4481A9; Tue, 28 Nov 2023 21:59:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j+PFWgt9" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C582644390; Tue, 28 Nov 2023 21:59:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6D236C433C8; Tue, 28 Nov 2023 21:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701208773; bh=huEW+29D3P6aPuKlMt45c6MMSHnwwncCdqop2pk2aa4=; h=Subject:From:To:Cc:Date:From; b=j+PFWgt9xYuvBN7Ytuk2eUZKpPJaWS66KXTKbdfdbBw1jyD16qVc7Ea8OoH4EMZvW qMDaSREVxAxw5sojE6QieZdDNKbVa/6pDlsrWvC81jeW6QCIxG1KIIYHt0tA0gQik2 UD0uCmS++CDhgPUvoyirHt++N8/vVYofVaHgas+/ktGfZADvJPFYiD0bKjvIrddokl VWFAD7ESxc1byyP2UC12/isZ2q5CFIzAgUCjRtbZ1tSWh4d0AyRL5h/CKDTIcH/S/i uG4oueJb4Pj6BOoeoQ9U1qII6h7SpAf6CVLHzJoZJukF0iolJiZObvJAdqvS+L8/2U FrgKtGD5h8Mpg== Subject: [PATCH 0/8] nfsd fixes for 6.5.y From: Chuck Lever To: stable@vger.kernel.org Cc: linux-nfs@vger.kernel.org Date: Tue, 28 Nov 2023 16:59:32 -0500 Message-ID: <170120874713.1515.13712791731008720729.stgit@klimt.1015granger.net> User-Agent: StGit/1.5 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Backport of upstream fixes to NFSD's duplicate reply cache. These have been hand-applied and tested with the same reproducer as was used to create the upstream fixes. --- Chuck Lever (8): NFSD: Refactor nfsd_reply_cache_free_locked() NFSD: Rename nfsd_reply_cache_alloc() NFSD: Replace nfsd_prune_bucket() NFSD: Refactor the duplicate reply cache shrinker NFSD: Remove svc_rqst::rq_cacherep NFSD: Rename struct svc_cacherep NFSD: Fix "start of NFS reply" pointer passed to nfsd_cache_update() NFSD: Fix checksum mismatches in the duplicate reply cache fs/nfsd/cache.h | 8 +- fs/nfsd/nfscache.c | 266 ++++++++++++++++++++++++------------- fs/nfsd/nfssvc.c | 20 ++- fs/nfsd/trace.h | 26 +++- include/linux/sunrpc/svc.h | 1 - 5 files changed, 218 insertions(+), 103 deletions(-) -- Chuck Lever