linux/net/sunrpc
Trond Myklebust 20a951afb7 SUNRPC: Partial revert of commit 6f9f17287e
commit ea7a1019d8baf8503ecd6e3ec8436dec283569e6 upstream.

The premise of commit 6f9f17287e ("SUNRPC: Mitigate cond_resched() in
xprt_transmit()") was that cond_resched() is expensive and unnecessary
when there has been just a single send.
The point of cond_resched() is to ensure that tasks that should pre-empt
this one get a chance to do so when it is safe to do so. The code prior
to commit 6f9f17287e failed to take into account that it was keeping a
rpc_task pinned for longer than it needed to, and so rather than doing a
full revert, let's just move the cond_resched.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-11-17 09:48:50 +01:00
..
auth_gss rpc: fix gss_svc_init cleanup on failure 2021-09-22 12:26:33 +02:00
xprtrdma svcrdma: disable timeouts on rdma backchannel 2021-03-24 11:26:38 +01:00
addr.c
auth_null.c
auth_unix.c
auth.c
backchannel_rqst.c
cache.c
clnt.c sunrpc: Fix misplaced barrier in call_decode 2021-05-19 10:08:27 +02:00
debugfs.c
Kconfig
Makefile
netns.h
rpc_pipe.c
rpcb_clnt.c
sched.c SUNRPC: Should wake up the privileged task firstly. 2021-07-14 16:53:05 +02:00
socklib.c
stats.c
sunrpc_syms.c
sunrpc.h
svc_xprt.c NFSD: Repair misuse of sv_lock in 5.10.16-rt30. 2021-03-24 11:26:38 +01:00
svc.c sunrpc: fix refcount leak for rpc auth modules 2021-03-24 11:26:39 +01:00
svcauth_unix.c
svcauth.c
svcsock.c
sysctl.c
timer.c
xdr.c
xprt.c SUNRPC: Partial revert of commit 6f9f17287e 2021-11-17 09:48:50 +01:00
xprtmultipath.c
xprtsock.c