]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitedd6e9a104d5722f8d97e27e7d8ef43484c2ea99
treeb16f44afbdf83df990b762ae3c08b45b88b3e25e
parent0740225062bafffcd3b2f70d4865cabb9edbe933
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