summaryrefslogtreecommitdiff
path: root/include/linux/sunrpc/xprt.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-11-06 01:40:58 +0300
committerTrond Myklebust <Trond.Myklebust@netapp.com>2008-01-30 10:05:25 +0300
commit67a391d72ca7efb387c30ec761a487e50a3ff085 (patch)
treea3594508502769d56e838c20b5b094bcc1906b16 /include/linux/sunrpc/xprt.h
parent66af1e558538137080615e7ad6d1f2f80862de01 (diff)
downloadlinux-67a391d72ca7efb387c30ec761a487e50a3ff085.tar.xz
SUNRPC: Fix TCP rebinding logic
Currently the TCP rebinding logic assumes that if we're not using a reserved port, then we don't need to reconnect on the same port if a disconnection event occurs. This breaks most RPC duplicate reply cache implementations. Also take into account the fact that xprt_min_resvport and xprt_max_resvport may change while we're reconnecting, since the user may change them at any time via the sysctls. Ensure that we check the port boundaries every time we loop in xs_bind4/xs_bind6. Also ensure that if the boundaries change, we only scan the ports a maximum of 2 times. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'include/linux/sunrpc/xprt.h')
0 files changed, 0 insertions, 0 deletions