From: Stanislav Kinsbursky Date: Tue, 25 Oct 2011 11:17:18 +0000 (+0300) Subject: SUNRPC: cleanup service destruction X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8e356b1e2a888c59d10a4842995a3273ca2d9086;p=linux-beck.git SUNRPC: cleanup service destruction svc_unregister() call have to be removed from svc_destroy() since it will be called in sv_shutdown callback. Signed-off-by: Stanislav Kinsbursky Signed-off-by: Trond Myklebust --- diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index 918edc310fd1..407462ff4779 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -530,7 +530,6 @@ svc_destroy(struct svc_serv *serv) if (svc_serv_is_pooled(serv)) svc_pool_map_put(); - svc_unregister(serv); kfree(serv->sv_pools); kfree(serv); }