diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2017-11-08 00:55:22 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-11-27 16:45:10 -0500 |
commit | ba589528d6a251721a245fad07c0e3090fc9d6f5 (patch) | |
tree | d05140bb3b81ee7d09fe95d36c31b399faec65d6 | |
parent | 03da3169c67f67729d8b52cee4e5689b0a3f94c0 (diff) |
nfsd: remove net pointer from debug messages
Publishing of net pointer is not safe,
replace it in debug meesages by net->ns.inum
[ 119.989161] nfsd: initializing export module (net: f00001e7).
[ 171.767188] NFSD: starting 90-second grace period (net f00001e7)
[ 322.185240] nfsd: shutting down export module (net: f00001e7).
[ 322.186062] nfsd: export shutdown complete (net: f00001e7).
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r-- | fs/nfsd/export.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfsd/export.c b/fs/nfsd/export.c index 46b48dbbdd32..f9e7dd57cc12 100644 --- a/fs/nfsd/export.c +++ b/fs/nfsd/export.c | |||
@@ -1230,7 +1230,7 @@ nfsd_export_init(struct net *net) | |||
1230 | int rv; | 1230 | int rv; |
1231 | struct nfsd_net *nn = net_generic(net, nfsd_net_id); | 1231 | struct nfsd_net *nn = net_generic(net, nfsd_net_id); |
1232 | 1232 | ||
1233 | dprintk("nfsd: initializing export module (net: %p).\n", net); | 1233 | dprintk("nfsd: initializing export module (net: %x).\n", net->ns.inum); |
1234 | 1234 | ||
1235 | nn->svc_export_cache = cache_create_net(&svc_export_cache_template, net); | 1235 | nn->svc_export_cache = cache_create_net(&svc_export_cache_template, net); |
1236 | if (IS_ERR(nn->svc_export_cache)) | 1236 | if (IS_ERR(nn->svc_export_cache)) |
@@ -1278,7 +1278,7 @@ nfsd_export_shutdown(struct net *net) | |||
1278 | { | 1278 | { |
1279 | struct nfsd_net *nn = net_generic(net, nfsd_net_id); | 1279 | struct nfsd_net *nn = net_generic(net, nfsd_net_id); |
1280 | 1280 | ||
1281 | dprintk("nfsd: shutting down export module (net: %p).\n", net); | 1281 | dprintk("nfsd: shutting down export module (net: %x).\n", net->ns.inum); |
1282 | 1282 | ||
1283 | cache_unregister_net(nn->svc_expkey_cache, net); | 1283 | cache_unregister_net(nn->svc_expkey_cache, net); |
1284 | cache_unregister_net(nn->svc_export_cache, net); | 1284 | cache_unregister_net(nn->svc_export_cache, net); |
@@ -1286,5 +1286,5 @@ nfsd_export_shutdown(struct net *net) | |||
1286 | cache_destroy_net(nn->svc_export_cache, net); | 1286 | cache_destroy_net(nn->svc_export_cache, net); |
1287 | svcauth_unix_purge(net); | 1287 | svcauth_unix_purge(net); |
1288 | 1288 | ||
1289 | dprintk("nfsd: export shutdown complete (net: %p).\n", net); | 1289 | dprintk("nfsd: export shutdown complete (net: %x).\n", net->ns.inum); |
1290 | } | 1290 | } |