diff options
author | Stanislav Kinsbursky <skinsbursky@parallels.com> | 2012-09-18 13:37:23 +0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2012-10-01 15:27:43 -0700 |
commit | cb7323fffa85df37161f4d3be45e1f787808309c (patch) | |
tree | e981d8fb5bc7d10a8118a9d2e0805a4c5fbd4545 /fs/lockd/netns.h | |
parent | 303a7ce92064c285a04c870f2dc0192fdb2968cb (diff) | |
download | op-kernel-dev-cb7323fffa85df37161f4d3be45e1f787808309c.zip op-kernel-dev-cb7323fffa85df37161f4d3be45e1f787808309c.tar.gz |
lockd: create and use per-net NSM RPC clients on MON/UNMON requests
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 creates reference-counted per-net NSM client on first monitor
request and destroys it after last unmonitor request.
Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/lockd/netns.h')
0 files changed, 0 insertions, 0 deletions