From: J. Bruce Fields Date: Fri, 23 Dec 2011 20:52:19 +0000 (-0700) Subject: svcrpc: don't revert to SVC_POOL_DEFAULT on nfsd shutdown X-Git-Tag: v3.3-rc1~67^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9689dcce0b456793c46bdeea7a79adfab1bc9c5d;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 --- diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 1dd5fd0..9701798 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -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);