diff options
| author | Avi Weiss <thnkslprpt@gmail.com> | 2026-10-27 06:56:43 +0200 |
|---|---|---|
| committer | Anna Schumaker <anna.schumaker@hammerspace.com> | 2026-11-09 15:04:53 -0500 |
| commit | f14b157168ac106cfac6d577e08726488b1b886c (patch) | |
| tree | d44812baf46f4ccfd5124ee67e3718b411f9b339 /tools/perf/scripts/python | |
| parent | 8acd94f02a960c8936df25a7af9c02c8ea87064d (diff) | |
SUNRPC: Balance queue accounting when relocating a task
When rpc_task_set_transport() relocates a movable task from an
offline transport, it releases the request and drops the
transport reference without decrementing the old transport's
queuelen or the switch's xps_queuelen. Releasing the task
later only accounts for the replacement transport.
The stale counts affect transport selection and can prevent
xprt_delete_locked() from removing an otherwise idle transport.
Use rpc_task_release_xprt() to balance the previous assignment
before selecting a replacement. Pass clnt explicitly because
rpc_task_set_client() can assign a transport before tk_client
is initialized.
Fixes: 82ee41b85cef ("SUNRPC don't resend a task on an offlined transport")
Signed-off-by: Avi Weiss <thnkslprpt@gmail.com>
Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
