Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7e981a8a authored by Vasily Averin's avatar Vasily Averin Committed by J. Bruce Fields
Browse files

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: default avatarVasily Averin <vvs@virtuozzo.com>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 1754eb2b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;
}