diff options
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svc_xprt.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/net/sunrpc/svc_xprt.c b/net/sunrpc/svc_xprt.c index 27d44332f017..dcd2d1ee2e3c 100644 --- a/net/sunrpc/svc_xprt.c +++ b/net/sunrpc/svc_xprt.c | |||
@@ -1166,11 +1166,6 @@ static void *svc_pool_stats_start(struct seq_file *m, loff_t *pos) | |||
1166 | 1166 | ||
1167 | dprintk("svc_pool_stats_start, *pidx=%u\n", pidx); | 1167 | dprintk("svc_pool_stats_start, *pidx=%u\n", pidx); |
1168 | 1168 | ||
1169 | lock_kernel(); | ||
1170 | /* bump up the pseudo refcount while traversing */ | ||
1171 | svc_get(serv); | ||
1172 | unlock_kernel(); | ||
1173 | |||
1174 | if (!pidx) | 1169 | if (!pidx) |
1175 | return SEQ_START_TOKEN; | 1170 | return SEQ_START_TOKEN; |
1176 | return (pidx > serv->sv_nrpools ? NULL : &serv->sv_pools[pidx-1]); | 1171 | return (pidx > serv->sv_nrpools ? NULL : &serv->sv_pools[pidx-1]); |
@@ -1198,12 +1193,6 @@ static void *svc_pool_stats_next(struct seq_file *m, void *p, loff_t *pos) | |||
1198 | 1193 | ||
1199 | static void svc_pool_stats_stop(struct seq_file *m, void *p) | 1194 | static void svc_pool_stats_stop(struct seq_file *m, void *p) |
1200 | { | 1195 | { |
1201 | struct svc_serv *serv = m->private; | ||
1202 | |||
1203 | lock_kernel(); | ||
1204 | /* this function really, really should have been called svc_put() */ | ||
1205 | svc_destroy(serv); | ||
1206 | unlock_kernel(); | ||
1207 | } | 1196 | } |
1208 | 1197 | ||
1209 | static int svc_pool_stats_show(struct seq_file *m, void *p) | 1198 | static int svc_pool_stats_show(struct seq_file *m, void *p) |