diff options
| author | Chuck Lever <chuck.lever@oracle.com> | 2026-03-06 16:56:23 -0500 |
|---|---|---|
| committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2026-04-13 11:52:54 -0700 |
| commit | 100142093e22b3f7741ac88e94878bb3694e306f (patch) | |
| tree | e86180230ba7f9d4b6d4209e9783c70dcb033fbb /include/linux | |
| parent | 24297c7cd3f9389374bb13d1ca578c335d2866b9 (diff) | |
xprtrdma: Avoid 250 ms delay on backlog wakeup
Commit a721035477fb ("SUNRPC/xprt: async tasks mustn't block waiting
for memory") changed xprt_rdma_alloc_slot() to set tk_status to
-ENOMEM so that call_reserveresult() would sleep HZ/4 before
retrying. That rationale applies to xprt_dynamic_alloc_slot(),
where an immediate retry under memory pressure wastes CPU, but not
to the RDMA backlog path: a task woken from the backlog has a slot
waiting for it, so the 250 ms rpc_delay adds latency without
benefit.
This also aligns the code with the existing kernel-doc for
xprt_rdma_alloc_slot(), which already documented %-EAGAIN.
Fixes: a721035477fb ("SUNRPC/xprt: async tasks mustn't block waiting for memory")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
