lockd: use rpc client's cl_nodename for id encoding
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Tue, 18 Sep 2012 09:37:18 +0000 (13:37 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 1 Oct 2012 22:27:38 +0000 (15:27 -0700)
commit303a7ce92064c285a04c870f2dc0192fdb2968cb
tree314e49df1536acc5b7752a1f8609392a13a890a8
parente9406db20fecbfcab646bad157b4cfdc7cadddfb
lockd: use rpc client's cl_nodename for id encoding

Taking hostname from uts namespace if not safe, because this cuold be
performind during umount operation on child reaper death. And in this case
current->nsproxy is NULL already.

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