]> 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)
commit846e6ad4d4e39a1f76224204f5129b97fc9a8841
tree292fcb0062d86eb7170de559fdd211b21dbe40da
parent3a661781e0f079296a0cfb663b0b0372a4b85766
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