summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorChuck Lever2009-03-19 01:46:51 +0100
committerTrond Myklebust2009-03-28 20:55:28 +0100
commitfc28decdc93633a65d54e42498e9e819d466329c (patch)
tree19361a89093649d16c48e421ac2dfadc63c97fc6 /usr
parentSUNRPC: Set IPV6ONLY flag on PF_INET6 RPC listener sockets (diff)
downloadkernel-qcow2-linux-fc28decdc93633a65d54e42498e9e819d466329c.tar.gz
kernel-qcow2-linux-fc28decdc93633a65d54e42498e9e819d466329c.tar.xz
kernel-qcow2-linux-fc28decdc93633a65d54e42498e9e819d466329c.zip
SUNRPC: Use IPv4 loopback for registering AF_INET6 kernel RPC services
The kernel uses an IPv6 loopback address when registering its AF_INET6 RPC services so that it can tell whether the local portmapper is actually IPv6-enabled. Since the legacy portmapper doesn't listen on IPv6, however, this causes a long timeout on older systems if the kernel happens to try creating and registering an AF_INET6 RPC service. Originally I wanted to use a connected transport (either TCP or connected UDP) so that the upcall would fail immediately if the portmapper wasn't listening on IPv6, but we never agreed on what transport to use. In the end, it's of little consequence to the kernel whether the local portmapper is listening on IPv6. It's only important whether the portmapper supports rpcbind v4. And the kernel can't tell that at all if it is sending requests via IPv6 -- the portmapper will just ignore them. So, send both rpcbind v2 and v4 SET/UNSET requests via IPv4 loopback to maintain better backwards compatibility between new kernels and legacy user space, and prevent multi-second hangs in some cases when the kernel attempts to register RPC services. This patch is part of a series that addresses http://bugzilla.kernel.org/show_bug.cgi?id=12256 Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions