kernel_samsung_a53x/net/sunrpc
Kuniyuki Iwashima dba5c748c9 nfsd: Don't call freezable_schedule_timeout() after each successful page allocation in svc_alloc_arg().
When commit 390390240145 ("nfsd: don't allow nfsd threads to be
signalled.") is backported to 5.10, it was adjusted considering commit
3feac2b55293 ("sunrpc: exclude from freezer when waiting for requests:").

However, 3feac2b55293 is based on commit f6e70aab9dfe ("SUNRPC: refresh
rq_pages using a bulk page allocator"), which converted page-by-page
allocation to a batch allocation, so schedule_timeout() is placed
un-nested.

As a result, the backported commit 7229200f6866 ("nfsd: don't allow nfsd
threads to be signalled.") placed freezable_schedule_timeout() in the wrong
place.

Now, freezable_schedule_timeout() is called after every successful page
allocation, and we see 30%+ performance regression on 5.10.220 in our
test suite.

Let's move it to the correct place so that freezable_schedule_timeout()
is called only when page allocation fails.

Fixes: 7229200f6866 ("nfsd: don't allow nfsd threads to be signalled.")
Reported-by: Hughdan Liu <hughliu@amazon.com>
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-01-19 15:00:26 +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 nfsd: Don't call freezable_schedule_timeout() after each successful page allocation in svc_alloc_arg(). 2025-01-19 15:00:26 +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