summaryrefslogtreecommitdiffstats
path: root/fs/lockd/mon.c
diff options
context:
space:
mode:
authorVasily Averin <vvs@virtuozzo.com>2017-11-08 08:55:55 +0300
committerJ. Bruce Fields <bfields@redhat.com>2017-11-27 16:45:10 -0500
commite919b0765287f36f7e9c84aed785eddfbbd98dfa (patch)
tree9b4c959282bbf3d3a2d56eb7ee6daea682d66bf3 /fs/lockd/mon.c
parentba589528d6a251721a245fad07c0e3090fc9d6f5 (diff)
downloadlinux-e919b0765287f36f7e9c84aed785eddfbbd98dfa.tar.gz
linux-e919b0765287f36f7e9c84aed785eddfbbd98dfa.tar.bz2
linux-e919b0765287f36f7e9c84aed785eddfbbd98dfa.zip
lockd: remove net pointer from messages
Publishing of net pointer is not safe, use net->ns.inum as net ID in debug messages [ 171.757678] lockd_up_net: per-net data created; net=f00001e7 [ 171.767188] NFSD: starting 90-second grace period (net f00001e7) [ 300.653313] lockd: nuking all hosts in net f00001e7... [ 300.653641] lockd: host garbage collection for net f00001e7 [ 300.653968] lockd: nlmsvc_mark_resources for net f00001e7 [ 300.711483] lockd_down_net: per-net data destroyed; net=f00001e7 [ 300.711847] lockd: nuking all hosts in net 0... [ 300.711847] lockd: host garbage collection for net 0 [ 300.711848] lockd: nlmsvc_mark_resources for net 0 Signed-off-by: Vasily Averin <vvs@virtuozzo.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/lockd/mon.c')
-rw-r--r--fs/lockd/mon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/lockd/mon.c b/fs/lockd/mon.c
index 9fbbd11f9ecb..96cfb2967ac7 100644
--- a/fs/lockd/mon.c
+++ b/fs/lockd/mon.c
@@ -110,7 +110,8 @@ static int nsm_mon_unmon(struct nsm_handle *nsm, u32 proc, struct nsm_res *res,
clnt = nsm_create(host->net, host->nodename);
if (IS_ERR(clnt)) {
dprintk("lockd: failed to create NSM upcall transport, "
- "status=%ld, net=%p\n", PTR_ERR(clnt), host->net);
+ "status=%ld, net=%x\n", PTR_ERR(clnt),
+ host->net->ns.inum);
return PTR_ERR(clnt);
}