diff options
author | Vasily Averin <vvs@virtuozzo.com> | 2017-11-06 16:46:04 +0300 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2017-11-08 00:44:01 +0300 |
commit | 7e981a8afa6d8d1d93e2b3d162aa81cc7b537208 (patch) | |
tree | 62a313944003ea1a931bb0156189e4af43aef56f /fs/nfsd | |
parent | 1754eb2b27d7a58e5b9038c6297a1e7bbff4ed52 (diff) | |
download | linux-7e981a8afa6d8d1d93e2b3d162aa81cc7b537208.tar.xz |
nfsd: use nfs->ns.inum as net ID
Publishing of net pointer is not safe,
let's use nfs->ns.inum instead
Signed-off-by: Vasily Averin <vvs@virtuozzo.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r-- | fs/nfsd/nfs4state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index e905bf642a53..ecbc7b0dfa4d 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c @@ -7056,8 +7056,8 @@ nfs4_state_start_net(struct net *net) nn->nfsd4_manager.block_opens = true; locks_start_grace(net, &nn->nfsd4_manager); nfsd4_client_tracking_init(net); - printk(KERN_INFO "NFSD: starting %ld-second grace period (net %p)\n", - nn->nfsd4_grace, net); + printk(KERN_INFO "NFSD: starting %ld-second grace period (net %x)\n", + nn->nfsd4_grace, net->ns.inum); queue_delayed_work(laundry_wq, &nn->laundromat_work, nn->nfsd4_grace * HZ); return 0; } |