aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/svc.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2011-12-23 15:52:19 -0500
committerJ. Bruce Fields <bfields@redhat.com>2012-01-05 15:35:56 -0500
commit9689dcce0b456793c46bdeea7a79adfab1bc9c5d (patch)
treeb555d6f2afa67d01c3f7a7ad5bb5ed62f35c6d96 /net/sunrpc/svc.c
parent61c8504c428edcebf23b97775a129c5b393a302b (diff)
svcrpc: don't revert to SVC_POOL_DEFAULT on nfsd shutdown
This was unexpected behavior (at least for me)--why would you want configuration settings automatically lost on nfsd restart? In practice this won't affect distributions, which likely set everything on every startup. But I'd expect the behavior to be less confusing to someone manually restarting nfsd for testing. Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svc.c')
-rw-r--r--net/sunrpc/svc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c
index 1dd5fd014559..97017989fa1d 100644
--- a/net/sunrpc/svc.c
+++ b/net/sunrpc/svc.c
@@ -286,7 +286,6 @@ svc_pool_map_put(void)
286 mutex_lock(&svc_pool_map_mutex); 286 mutex_lock(&svc_pool_map_mutex);
287 287
288 if (!--m->count) { 288 if (!--m->count) {
289 m->mode = SVC_POOL_DEFAULT;
290 kfree(m->to_pool); 289 kfree(m->to_pool);
291 m->to_pool = NULL; 290 m->to_pool = NULL;
292 kfree(m->pool_to); 291 kfree(m->pool_to);