]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit194caaea3626222e4a8ff06b7b7f8424599c2498
tree292fcb0062d86eb7170de559fdd211b21dbe40da
parentf2b6cfb3addd6760f9c5d7d1bf90d957a0aad6cf
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