summaryrefslogtreecommitdiff
path: root/lib/notifier-error-inject.h
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2020-07-08 23:09:53 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2020-09-21 17:21:09 +0300
commit6f9f17287e78e5049931af2037b15b26d134a32a (patch)
tree61834c2cd426dc876c1cb267a2d09a0a431194d5 /lib/notifier-error-inject.h
parentdb0a86c4266ac36769f54e2ce33fff0300c9bc00 (diff)
downloadlinux-6f9f17287e78e5049931af2037b15b26d134a32a.tar.xz
SUNRPC: Mitigate cond_resched() in xprt_transmit()
The original purpose of this expensive call is to prevent a long queue of requests from blocking other work. The cond_resched() call is unnecessary after just a single send operation. For longer queues, instead of invoking the kernel scheduler, simply release the transport send lock and return to the RPC scheduler. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'lib/notifier-error-inject.h')
0 files changed, 0 insertions, 0 deletions