Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1325527lqb; Sat, 25 May 2024 17:01:47 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVTWaD87KmAJS6e9D+2zXIKlb1ZqRkjWADX6agjdyaZKEp5+YZfcOXc/KYAfoNeIUaW+1+LIRqFXCbSxTb2cWPKaBvuNMPaMVOzs9TlfQ== X-Google-Smtp-Source: AGHT+IEuYEUBCtl7rc7VVZwAyxfrwXO4A/6aAqS/I5+/GDUcQ2PL50J6+AjuqHEnGmSavDUA4E0M X-Received: by 2002:a54:488b:0:b0:3c9:d7e1:e6af with SMTP id 5614622812f47-3d1a7b30888mr6231696b6e.48.1716681706921; Sat, 25 May 2024 17:01:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716681706; cv=pass; d=google.com; s=arc-20160816; b=yzjSdUkq26ypLiCMRpF5B4HAD1k1et4b0eNmfho1eZiOzsq1IkAsrbfJq6Dm7Ub7Db Q5zE3y2kxxj4fHyAwZ2tixHBsUmOUP+KcISN89yDxXfsbvJ5gJeRMsBo6oNBp//XUkgW F3Tc7l6oaAtNNWZIFLORP/0kS+E2SiNh9xiJ6+NdLYSICzpSPJkLycr1Ck4TT5jRSSHb /tLXRPuCQoQydXtgFSakGYHRNcKwPGMVjGIRMoOf1cl6clhXH2gbz0pr5jQdmE0EuQDU gZc/0wAg/YKjPz88ApFnUspCU2P8eGVZPgWICAAbrOuWp5es/HHxdsnvXgQya6w6q4Wd f3uw== 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=itX7OKPgi5Yn1xlWJqC9Y+xECmrzOV+6f02pgt0sJU4=; fh=cmZSjUhdD8XfdmfMmJvQvuT+XvJ3kK7j/9zFuImPXWE=; b=h3t4ZxJUTryIktYwkdNpXTojR02HZC1qCkdcrSzQkcXylW1wtoat9O6LIfuSJFsDLw 8rcm8nY30nPkQfb3iRHnGJa0VTJfD80V6frLEWM0wXo3VFBKJTnMaWFfI1i2gXusADpk 5L04Sh7WQQbmZ5ALDtYAjvUZdWjl1LlxxkWtSl9RZFgFacGRWwU4nbuusw8msJQeZU1T OXwP23JyrsaAV8XTU1CcxpI9/Fwq2QGzsozxexWsA082nM2WGuV7AhXGwz+2vn2QtTn1 mKVpi5d/FAgzVqDYEAn/JZUYUgUAsDSziCQWypHIVUd25XM/5QCEg8WIeufmv50ipLEs Hq8w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SK59GkrJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3381-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id 6a1803df08f44-6ac1395adb1si49550336d6.393.2024.05.25.17.01.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 May 2024 17:01:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SK59GkrJ; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-nfs+bounces-3381-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3381-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 76A461C20A11 for ; Sun, 26 May 2024 00:01:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 120533D62; Sun, 26 May 2024 00:01:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="SK59GkrJ" 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 E1B6B3C24 for ; Sun, 26 May 2024 00:01:44 +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=1716681705; cv=none; b=JOvyrf8dLHtIf97kIHOu8JTSHRUpCngzF+mtEsm9Z9aEXbOO1ZzT3FnROWR2H9tOycLZzaG7uX8vsaSQmwzb+/ycd7HFb+mi5goV6j5JMAhLlLrbVFNTGlBEyo+h20jrLOrDKKh9zNIakWO26o1tGFlzyPKF7ufDnd0q6T+snPM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716681705; c=relaxed/simple; bh=12Vy624mxOQoeYC01XZoI1hXJDJhOqfSU55FT1+zaS4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gMyTEyPX8Oaovl40o9HEvvJeHDIc9nK/ax/1nipjBTBPFzmLd05N+riQURJ17pzuf41llqcu2IkUBGoXjGAW736ZXCQLq1wUO/VEwx3NWrz920rgBd9mIrkE5CwAjkm9reKA5hSsB206Dw6ccq3dPKvvB2ei5CSsJt7OWsXaVA8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=SK59GkrJ; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D0F90C2BD11; Sun, 26 May 2024 00:01:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716681704; bh=12Vy624mxOQoeYC01XZoI1hXJDJhOqfSU55FT1+zaS4=; h=From:To:Cc:Subject:Date:From; b=SK59GkrJhwMd6xi7G53715iyzEjlPtXlqcK0ZQluG4DZYB66yRM9ibhjjlpitrnuo RJu+hdVcwxE/cXEoEr8KsLRy05IJmhloPwnMYIBieeaMLs7Okdq8JHq4qwrHQEYqHD zsG1AA2eAZrvjt5kbGJr0SldzQDz74gQ3w3Bj4FVaGxq92D8XJZvPoM1VVjEd2Hd/P BqrBsIZ2Exp9q6RGq7b41xmkC+99W/YI5EtD7KcoSQVFfaPfhFcBtrKNa1fv+YHZSu TdbgZRDPzvSUm+dLk2p2SuNxGrRWTjSJX5eAmhcH35/RCbm3xc0yaiVB+NVM1yXuTH Rru+yvaE2oqLA== From: cel@kernel.org To: Cc: jaroslav.pulchart@gooddata.com, rankincj@gmail.com, Josef Bacik , Jeff Layton Subject: [PATCH] sunrpc: use the struct net as the svc proc private Date: Sat, 25 May 2024 20:01:22 -0400 Message-ID: <20240526000122.386951-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(-) I investigated the crash reported by Chris and Jaroslav. This patch is missing from v6.8.y. 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