Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SUNRPC: Mitigate cond_resched() in xprt_transmit()
[ Upstream commit 6f9f172 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information