|
|
@@ -578,8 +578,10 @@ static void nlm_complain_hosts(struct net *net)
|
|
|
|
|
|
if (ln->nrhosts == 0)
|
|
|
return;
|
|
|
- printk(KERN_WARNING "lockd: couldn't shutdown host module for net %p!\n", net);
|
|
|
- dprintk("lockd: %lu hosts left in net %p:\n", ln->nrhosts, net);
|
|
|
+ pr_warn("lockd: couldn't shutdown host module for net %x!\n",
|
|
|
+ net->ns.inum);
|
|
|
+ dprintk("lockd: %lu hosts left in net %x:\n", ln->nrhosts,
|
|
|
+ net->ns.inum);
|
|
|
} else {
|
|
|
if (nrhosts == 0)
|
|
|
return;
|
|
|
@@ -590,9 +592,9 @@ static void nlm_complain_hosts(struct net *net)
|
|
|
for_each_host(host, chain, nlm_server_hosts) {
|
|
|
if (net && host->net != net)
|
|
|
continue;
|
|
|
- dprintk(" %s (cnt %d use %d exp %ld net %p)\n",
|
|
|
+ dprintk(" %s (cnt %d use %d exp %ld net %x)\n",
|
|
|
host->h_name, atomic_read(&host->h_count),
|
|
|
- host->h_inuse, host->h_expires, host->net);
|
|
|
+ host->h_inuse, host->h_expires, host->net->ns.inum);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -605,7 +607,8 @@ nlm_shutdown_hosts_net(struct net *net)
|
|
|
mutex_lock(&nlm_host_mutex);
|
|
|
|
|
|
/* First, make all hosts eligible for gc */
|
|
|
- dprintk("lockd: nuking all hosts in net %p...\n", net);
|
|
|
+ dprintk("lockd: nuking all hosts in net %x...\n",
|
|
|
+ net ? net->ns.inum : 0);
|
|
|
for_each_host(host, chain, nlm_server_hosts) {
|
|
|
if (net && host->net != net)
|
|
|
continue;
|
|
|
@@ -646,7 +649,8 @@ nlm_gc_hosts(struct net *net)
|
|
|
struct hlist_node *next;
|
|
|
struct nlm_host *host;
|
|
|
|
|
|
- dprintk("lockd: host garbage collection for net %p\n", net);
|
|
|
+ dprintk("lockd: host garbage collection for net %x\n",
|
|
|
+ net ? net->ns.inum : 0);
|
|
|
for_each_host(host, chain, nlm_server_hosts) {
|
|
|
if (net && host->net != net)
|
|
|
continue;
|
|
|
@@ -662,9 +666,10 @@ nlm_gc_hosts(struct net *net)
|
|
|
if (atomic_read(&host->h_count) || host->h_inuse
|
|
|
|| time_before(jiffies, host->h_expires)) {
|
|
|
dprintk("nlm_gc_hosts skipping %s "
|
|
|
- "(cnt %d use %d exp %ld net %p)\n",
|
|
|
+ "(cnt %d use %d exp %ld net %x)\n",
|
|
|
host->h_name, atomic_read(&host->h_count),
|
|
|
- host->h_inuse, host->h_expires, host->net);
|
|
|
+ host->h_inuse, host->h_expires,
|
|
|
+ host->net->ns.inum);
|
|
|
continue;
|
|
|
}
|
|
|
nlm_destroy_host_locked(host);
|