]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sunrpc: simplify two-level sysctl registration for svcrdma_parm_table
authorLuis Chamberlain <mcgrof@kernel.org>
Sat, 11 Mar 2023 23:39:40 +0000 (15:39 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 18:51:07 +0000 (19:51 +0100)
commit57dee363185bb49bbc088229b879e39fedc9f4a2
treea2daebed43a3cea7e1f625678b42dd432155728e
parentd7892d68ee3c9d38d40eb4cd9ca62158f006cebe
sunrpc: simplify two-level sysctl registration for svcrdma_parm_table

[ Upstream commit 376bcd9b37632cf191711a68aa25ab42f0048c2e ]

There is no need to declare two tables to just create directories,
this can be easily be done with a prefix path with register_sysctl().

Simplify this registration.

Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Stable-dep-of: ce89e742a4c1 ("svcrdma: fix miss destroy percpu_counter in svc_rdma_proc_init()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/sunrpc/xprtrdma/svc_rdma.c