Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Vasily Averin and committed by
J. Bruce Fields
7e981a8a 1754eb2b

+2 -2
+2 -2
fs/nfsd/nfs4state.c
··· 7056 7056 nn->nfsd4_manager.block_opens = true; 7057 7057 locks_start_grace(net, &nn->nfsd4_manager); 7058 7058 nfsd4_client_tracking_init(net); 7059 - printk(KERN_INFO "NFSD: starting %ld-second grace period (net %p)\n", 7060 - nn->nfsd4_grace, net); 7059 + printk(KERN_INFO "NFSD: starting %ld-second grace period (net %x)\n", 7060 + nn->nfsd4_grace, net->ns.inum); 7061 7061 queue_delayed_work(laundry_wq, &nn->laundromat_work, nn->nfsd4_grace * HZ); 7062 7062 return 0; 7063 7063 }