]> 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)
commit3f6397981d72fc6805f8c3c248feb8ffc902cd12
treeb16f44afbdf83df990b762ae3c08b45b88b3e25e
parent5c5a4bef7f8efc49ce24bd5cb14af559eaa57235
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