Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2129857lqb; Mon, 27 May 2024 08:46:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVY9fdzzJyNSqF9EHVfDu2HfJCkvcKXu7LuO824E2LfBDakSjKdaMeZKdgo46POhw9q9CLj7qjDEeuXFJZDCgoEtdyohGQexZF3Clsmtw== X-Google-Smtp-Source: AGHT+IFW23PtjMIxvlVASBaNIOSPR+NSKlrV9EM9Te1KBHQwa/miPKEz5c+1LUUaoEyPemQMPwNI X-Received: by 2002:a17:902:650d:b0:1f3:675:a68c with SMTP id d9443c01a7336-1f4486f5c15mr95516385ad.23.1716824763838; Mon, 27 May 2024 08:46:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716824763; cv=pass; d=google.com; s=arc-20160816; b=S/WMfbRTSx9V7g3sOEzll3vi1itsPxE7Ejj1U225mmn9fs3Dt4lxSMLaXDs4bU1tKM J+AvrHEveKRMy+laEbtG+glbEZ28Nl/4mpMf99TfwRFF4guUMYEhn5ot/J3vdi/+7OL+ mfODhvVv9drzpXgDoxUZhu8eUVlw4Hy+oiMoTHTIQR/G1YKMEBJh5yITewxgSQUFyUde ERQk81ck3jrwdZOJdEWkgBlCSOhiorrfBjY67iVgBdiCrSs58QrZ63U7SQF12+9avU/O FUqYWDFrn3I0DbAIBVPqBJ/ZdW5EQRSM9znTgJa2BA57P9QUw+K4aFP34E6kgi1Df7Fh VTIQ== ARC-Message-Signature: i=2; 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:message-id:date:subject:cc:to :from:dkim-signature; bh=XH/6oXRjuVG3hM4aejfY5hRvOkAng151/7o2QzypfVA=; fh=Vwa3i7AmKRiN9vccMOrg8UG9ZUMFqvnuW+ozu+0GUDU=; b=mm+IJ3xYwebyW4ZlJLv/75rxQcSN4PxT/0K/mypb4Eqxnmrf3gaQhn+XB/ig+YW1hf dxuUE3NOXIZ1BZqP3vVrweioESSaI9cU9js6u7znWC/bE3ndPjHua3FKp4nk/88Oixqh +tQ35PqFIYoHXcqbj0F8XR87xruJYl0vrWmOOXorejSGCW46RsrWx7IEKK7AQSHXCnIN i+qy90kvzjEP6OzzI3oiDa4hlPVGgpuUNLSl0yCcR76ciskPuaic3KzO7UPLzIPX9jNi o3NnpGIJcNbPvS0HkDuz/Jp0UwhkDBGwHArsJhj1seyUCxdkFpSg5qAH/E8iJ7xLGKjw /mzQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Se4xx5vb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3410-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3410-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d9443c01a7336-1f44c787fedsi62629665ad.44.2024.05.27.08.46.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 08:46:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3410-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Se4xx5vb; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3410-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3410-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 C5B5F29B664 for ; Mon, 27 May 2024 15:32:09 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E736B15FCFC; Mon, 27 May 2024 15:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Se4xx5vb" 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 BD57815FCF9; Mon, 27 May 2024 15:27:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716823661; cv=none; b=BE2QbFhGpexzyyPZg98MoH9NjvU/VIY3vAn+rrHPPdz4AUMBQ2bGhb2lPz1UF/CetYt/fAY9ey5YUVV9oh/aAwHjoWUxzdk/+uw7qYVji6Q2vA+IOpU0QjMyYnRriIpityI5VPWw0McNMcGeWwf790JsH3bxiy8OkW11QTp0BVU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716823661; c=relaxed/simple; bh=eUlfksv76WqSMUglVS8Fo4aPW+gKMJ7VuKJQT65Dnks=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FTC3ClAHrexUXS9jLpRckJFurP1n1gce+piWawLnYW55/uNsADkWbOfLy3rEt8A2jIWCtUxBXe2p6MRHfaicXthDZwr4r5y0uLcl6BWpkGFkbuM7JfifhRXJwFC9j8dwESaf4enaPhd2hyB+3BmlRzGd4xxfSMri0FJPUB1+YG0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Se4xx5vb; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB2C6C2BBFC; Mon, 27 May 2024 15:27:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716823661; bh=eUlfksv76WqSMUglVS8Fo4aPW+gKMJ7VuKJQT65Dnks=; h=From:To:Cc:Subject:Date:From; b=Se4xx5vb0AY0N6y8UswlPHhMOzudyGQDY7zjX9WNgNK2kVwTcGPHuM0d7qTiU5mKv 7bKx3jpK5AvyJhJkD7lUP1ZD/vjtdmIGgW8thZCwVbgmheynTJfGfjGbPnDocxIX9M Fdi2aWblWNBD9NPFcIU1yttsmEqOJIJw98rZGYwu994tUlvssoKS02AmQx9zSMYYze SVg9p1LfbvQqS40YSMzZ1j20/WdCKjum7Qi7PyqEUh4R6mbfm/JeMXfu259QYUnaGK ki+CQX7Pknf3OBVc+MCDrNKYLdzh7fRdK6DoN8pkR8oY+ADCvdfezrKj4Rn73OP/OB sjYKTI+EedjEg== From: cel@kernel.org To: , Cc: regressions@lists.linux.dev, Josef Bacik , Jeff Layton Subject: [PATCH 6.8.y] sunrpc: use the struct net as the svc proc private Date: Mon, 27 May 2024 11:27:28 -0400 Message-ID: <20240527152728.1097505-1-cel@kernel.org> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Josef Bacik [ Upstream commit 418b9687dece5bd763c09b5c27a801a7e3387be9 ] nfsd is the only thing using this helper, and it doesn't use the private currently. When we switch to per-network namespace stats we will need the struct net * in order to get to the nfsd_net. Use the net as the proc private so we can utilize this when we make the switch over. Signed-off-by: Josef Bacik Reviewed-by: Jeff Layton Signed-off-by: Chuck Lever --- net/sunrpc/stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) This pre-requisite is needed for upstream commit 4b14885411f7 ("nfsd: make all of the nfsd stats per-network namespace"). diff --git a/net/sunrpc/stats.c b/net/sunrpc/stats.c index 65fc1297c6df..383860cb1d5b 100644 --- a/net/sunrpc/stats.c +++ b/net/sunrpc/stats.c @@ -314,7 +314,7 @@ EXPORT_SYMBOL_GPL(rpc_proc_unregister); struct proc_dir_entry * svc_proc_register(struct net *net, struct svc_stat *statp, const struct proc_ops *proc_ops) { - return do_register(net, statp->program->pg_name, statp, proc_ops); + return do_register(net, statp->program->pg_name, net, proc_ops); } EXPORT_SYMBOL_GPL(svc_proc_register); -- 2.45.1