SUNRPC: If the rpcbind channel is disconnected, fail the call to unregister
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 5 Aug 2013 20:04:47 +0000 (16:04 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 7 Aug 2013 21:07:18 +0000 (17:07 -0400)
commit786615bc1ce84150ded80daea6bd9f6297f48e73
treeb16f44afbdf83df990b762ae3c08b45b88b3e25e
parent00326ed6442c66021cd4b5e19e80f3e2027d5d42
SUNRPC: If the rpcbind channel is disconnected, fail the call to unregister

If rpcbind causes our connection to the AF_LOCAL socket to close after
we've registered a service, then we want to be careful about reconnecting
since the mount namespace may have changed.

By simply refusing to reconnect the AF_LOCAL socket in the case of
unregister, we avoid the need to somehow save the mount namespace. While
this may lead to some services not unregistering properly, it should
be safe.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Cc: Nix <nix@esperi.org.uk>
Cc: Jeff Layton <jlayton@redhat.com>
Cc: stable@vger.kernel.org # 3.9.x
include/linux/sunrpc/sched.h
net/sunrpc/clnt.c
net/sunrpc/netns.h
net/sunrpc/rpcb_clnt.c