Skip to content

Commit

Permalink
svcrpc: don't revert to SVC_POOL_DEFAULT on nfsd shutdown
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J. Bruce Fields committed Jan 5, 2012
1 parent 61c8504 commit 9689dcc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/sunrpc/svc.c
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,6 @@ svc_pool_map_put(void)
mutex_lock(&svc_pool_map_mutex);

if (!--m->count) {
m->mode = SVC_POOL_DEFAULT;
kfree(m->to_pool);
m->to_pool = NULL;
kfree(m->pool_to);
Expand Down

0 comments on commit 9689dcc

Please sign in to comment.