Commit 0740ee0
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>1 parent 8101c05 commit 0740ee0
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1520 | 1520 | | |
1521 | 1521 | | |
1522 | 1522 | | |
1523 | | - | |
| 1523 | + | |
1524 | 1524 | | |
1525 | 1525 | | |
| 1526 | + | |
1526 | 1527 | | |
| 1528 | + | |
| 1529 | + | |
1527 | 1530 | | |
1528 | 1531 | | |
1529 | 1532 | | |
1530 | 1533 | | |
1531 | 1534 | | |
1532 | 1535 | | |
1533 | 1536 | | |
1534 | | - | |
1535 | 1537 | | |
1536 | 1538 | | |
1537 | 1539 | | |
| |||
0 commit comments