lockd: per-net NSM client creation and destruction helpers introduced
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Tue, 18 Sep 2012 09:37:12 +0000 (13:37 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 1 Oct 2012 22:27:34 +0000 (15:27 -0700)
commite9406db20fecbfcab646bad157b4cfdc7cadddfb
tree292fcb0062d86eb7170de559fdd211b21dbe40da
parent1dc42e04b75779d321f1d17dca3873004066f667
lockd: per-net NSM client creation and destruction helpers introduced

NSM RPC client can be required on NFSv3 umount, when child reaper is dying (and
destroying it's mount namespace). It means, that current nsproxy is set to
NULL already, but creation of RPC client requires UTS namespace for gaining
hostname string.
This patch introduces reference counted NFS RPC clients creation and
destruction helpers (similar to RPCBIND RPC clients).

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/lockd/mon.c
fs/lockd/netns.h
fs/lockd/svc.c