From: Stanislav Kinsbursky Date: Tue, 18 Sep 2012 09:37:23 +0000 (+0400) Subject: lockd: create and use per-net NSM RPC clients on MON/UNMON requests X-Git-Tag: v3.7-rc1~58^2~51 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb7323fffa85df37161f4d3be45e1f787808309c;p=pandora-kernel.git 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 Cc: Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed