summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/kvec/errors.rs
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@kernel.org>2026-11-02 16:52:20 -0500
committerAnna Schumaker <anna.schumaker@hammerspace.com>2026-11-09 15:05:53 -0500
commit5e810a57a1cf2fc785d89e711ff40f1112f6404c (patch)
tree7d34cc1fdea416ff91bd79efc72e56f240b59cd4 /rust/kernel/alloc/kvec/errors.rs
parentb3497ac6e96effd5450b820de171e1137223d36c (diff)
NFS/localio: give the LOCALIO probe a short timeout of its own
The LOCALIO probe clones the NFS client with rpc_bind_new_program(), which NULL-pings the new program before the probe sends UUID_IS_LOCAL. Both calls use the mount's timeout. With timeo=600 and the default retrans, a server that does not answer the LOCALIO program holds each probe for about 170 s. The client then logs "nfslocalio: server ... not responding, timed out". On such a server, one mkdir took about 170 s of a 202 s run and ended when the probe gave up. Give the probe a soft timeout of its own, with no retries and no log message. The new nfs module parameter localio_timeout sets it in seconds, 10 by default and at most 600. Set it on a private clone of the NFS client before rpc_bind_new_program(), so that the ping uses it as well. Clear cl_noretranstimeo, which NFSv4 mounts set, because with it a sent call does not time out while the connection stays up. With localio_timeout set to 0, the probe uses the NFS client's timeouts, as before. The probe still shares the NFS client's transport and runs beside its RPCs. The NFS client's own timeouts do not change. Tested through a proxy that drops every call to the LOCALIO program: the probe gave up after 10.6 s and logged nothing. With localio_timeout=0 it took 182.9 s and logged the message above. The probe still succeeds against a server that supports LOCALIO: with no proxy, a 64 MiB O_DIRECT write through LOCALIO sent no WRITE RPCs. Signed-off-by: Mike Snitzer <snitzer@kernel.org> Signed-off-by: Anna Schumaker <anna.schumaker@hammerspace.com>
Diffstat (limited to 'rust/kernel/alloc/kvec/errors.rs')
0 files changed, 0 insertions, 0 deletions