EXPERIMENTAL: soft connect semantics for rpcbind
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest7 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | SUNRPC: Don't report a connect delay of 0 secondsnet/ | +4 | 0 replies | |
| 2/7 | SUNRPC: Allow RPCs to fail quickly if the server is unreachableinclude/ net/ net/ | +10 | 4 replies | |
| 3/7 | SUNRPC: Clean up call_transmit_status()net/ | +12 | 4 replies | |
| 4/7 | SUNRPC: maintain a single transport for rpcbind upcallsnet/ net/ | +54 | 0 replies | |
| 5/7 | SUNRPC: Use TCP for local rpcbind upcallsnet/ | +2 | 0 replies | |
| 6/7 | SUNRPC: Use soft connects for autobinding over TCPnet/ net/ | +16 | 0 replies | |
| 7/7 | SUNRPC: Use soft connect semantics when performing RPC pingnet/ | +1 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/7] EXPERIMENTAL: soft connect semantics for rpcbind
These need further refinement, but I'm posting now to spark some discussion.
To address manifold reports of svc_unregister() hanging (either at shutdown or if rpcbind simply wasn't ever started), these patches add a new per-request soft connect semantic, and update the kernel's rpcbind client to use a connection-oriented transport for local queries. This should cause the kernel's local rpcbind queries to fail immediately if rpcbind isn't reachable.
This can work with either TCP or connected UDP. I used TCP here merely as an example.
The final two patches have not been tested, but provide a taste of other uses for the soft connect semantic. One possible use is to address Ian's NFSv4 mount hang problems by making rpc_ping() fail if it cannot connect to the server.
We can also make use of this new feature to do proper "hangless" NFS v2/v3 version and transport negotiation in the kernel, although that is beyond the scope of the current patch set.
---
Chuck Lever (7):
SUNRPC: Use soft connect semantics when performing RPC ping
SUNRPC: Use soft connects for autobinding over TCP
SUNRPC: Use TCP for local rpcbind upcalls
SUNRPC: maintain a single transport for rpcbind upcalls
SUNRPC: Clean up call_transmit_status()
SUNRPC: Allow RPCs to fail quickly if the server is unreachable
SUNRPC: Don't report a connect delay of 0 seconds
include/linux/sunrpc/sched.h | 2 + net/sunrpc/clnt.c | 45 ++++++++++++++++++++-------- net/sunrpc/rpcb_clnt.c | 68 ++++++++++++++++++++++++++++++++---------- net/sunrpc/sunrpc_syms.c | 5 +++ net/sunrpc/xprtsock.c | 9 +++--- 5 files changed, 96 insertions(+), 33 deletions(-)
Signature · 1 line
Chuck Lever <[email protected]>