Browse Source

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>
J. Bruce Fields 13 years ago
parent
commit
9689dcce0b
1 changed files with 0 additions and 1 deletions
  1. 0 1
      net/sunrpc/svc.c

+ 0 - 1
net/sunrpc/svc.c

@@ -286,7 +286,6 @@ svc_pool_map_put(void)
 	mutex_lock(&svc_pool_map_mutex);
 	mutex_lock(&svc_pool_map_mutex);
 
 
 	if (!--m->count) {
 	if (!--m->count) {
-		m->mode = SVC_POOL_DEFAULT;
 		kfree(m->to_pool);
 		kfree(m->to_pool);
 		m->to_pool = NULL;
 		m->to_pool = NULL;
 		kfree(m->pool_to);
 		kfree(m->pool_to);