aboutsummaryrefslogtreecommitdiff
path: root/net/sunrpc/xprt.c
diff options
context:
space:
mode:
authorChuck Lever <cel@netapp.com>2006-05-25 01:40:49 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2006-06-09 09:34:05 -0400
commitb85d88068444ae5dcb1639bcef770ccbf085dd4e (patch)
treebcce3ef7e2f66465b09dc485fb1a280c111b2e31 /net/sunrpc/xprt.c
parent73a3d07c1082145a3b78407bb5252df290470c4c (diff)
SUNRPC: select privileged port numbers at random
Make the RPC client select privileged ephemeral source ports at random. This improves DRC behavior on the server by using the same port when reconnecting for the same mount point, but using a different port for fresh mounts. The Linux TCP implementation already does this for nonprivileged ports. Note that TCP sockets in TIME_WAIT will prevent quick reuse of a random ephemeral port number by leaving the port INUSE until the connection transitions out of TIME_WAIT. Test plan: Connectathon against every known server implementation using multiple mount points. Locking especially. Signed-off-by: Chuck Lever <cel@netapp.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'net/sunrpc/xprt.c')
0 files changed, 0 insertions, 0 deletions