sunrpc: pass in the sv_stats struct through svc_create_pooled
authorJosef Bacik <josef@toxicpanda.com>
Fri, 26 Jan 2024 15:39:42 +0000 (10:39 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Fri, 1 Mar 2024 14:12:08 +0000 (09:12 -0500)
commitf094323867668d50124886ad884b665de7319537
treea2763898d667b46e46763b51b8ba0c2625fac882
parenta2214ed588fb3c5b9824a21cff870482510372bb
sunrpc: pass in the sv_stats struct through svc_create_pooled

Since only one service actually reports the rpc stats there's not much
of a reason to have a pointer to it in the svc_program struct.  Adjust
the svc_create_pooled function to take the sv_stats as an argument and
pass the struct through there as desired instead of getting it from the
svc_program->pg_stats.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfsd/nfssvc.c
include/linux/sunrpc/svc.h
net/sunrpc/svc.c