kernel_samsung_a53x/net/sunrpc
Josef Bacik 6cc74d8021 sunrpc: don't change ->sv_stats if it doesn't exist
[ Upstream commit ab42f4d9a26f1723dcfd6c93fcf768032b2bb5e7 ]

We check for the existence of ->sv_stats elsewhere except in the core
processing code.  It appears that only nfsd actual exports these values
anywhere, everybody else just has a write only copy of sv_stats in their
svc_program.  Add a check for ->sv_stats before every adjustment to
allow us to eliminate the stats struct from all the users who don't
report the stats.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
[ cel: adjusted to apply to v5.10.y ]
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-19 14:48:42 +01:00
..
auth_gss SUNRPC: Convert rpc_client refcount to use refcount_t 2024-12-17 13:24:22 +01:00
xprtrdma svcrdma: Catch another Reply chunk overflow case 2025-01-19 00:10:01 +01:00
addr.c net: sunrpc: Fix an off by one in rpc_sockaddr2uaddr() 2024-11-19 08:44:57 +01:00
auth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth_null.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
auth_unix.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
backchannel_rqst.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cache.c SUNRPC: make sure cache entry active before cache_show 2024-12-17 13:24:20 +01:00
clnt.c sunrpc: remove unnecessary test in rpc_task_set_client() 2024-12-17 13:24:22 +01:00
debugfs.c SUNRPC: Convert rpc_client refcount to use refcount_t 2024-12-17 13:24:22 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
netns.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rpc_pipe.c SUNRPC: Convert rpc_client refcount to use refcount_t 2024-12-17 13:24:22 +01:00
rpcb_clnt.c SUNRPC: Add an IS_ERR() check back to where it was 2024-11-18 11:43:19 +01:00
sched.c SUNRPC: Fix a race to wake a sync task 2024-11-23 23:20:24 +01:00
socklib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
socklib.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
stats.c sunrpc: use the struct net as the svc proc private 2025-01-19 14:48:42 +01:00
sunrpc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sunrpc_syms.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
svc.c sunrpc: don't change ->sv_stats if it doesn't exist 2025-01-19 14:48:42 +01:00
svc_xprt.c Revert "nfsd: Don't call freezable_schedule_timeout() after each successful page allocation in svc_alloc_arg()." 2024-11-24 00:23:50 +01:00
svcauth.c SUNRPC: Add svc_rqst::rq_auth_stat 2024-11-19 12:27:45 +01:00
svcauth_unix.c SUNRPC: Set rq_auth_stat in the pg_authenticate() callout 2024-11-19 12:27:45 +01:00
svcsock.c nfsd: fix double fget() bug in __write_ports_addfd() 2024-11-19 12:28:32 +01:00
sysctl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
timer.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xdr.c NFSD: Refactor common code out of dirlist helpers 2024-11-19 12:28:23 +01:00
xprt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xprtmultipath.c SUNRPC: Fix a suspicious RCU usage warning 2024-11-18 12:13:10 +01:00
xprtsock.c net, sunrpc: Remap EPERM in case of connection failure in xs_tcp_setup_socket 2025-01-19 00:09:58 +01:00