Skip to content

Commit

Permalink
SUNRPC: cleanup service destruction
Browse files Browse the repository at this point in the history
svc_unregister() call have to be removed from svc_destroy() since it will be
called in sv_shutdown callback.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Stanislav Kinsbursky authored and Trond Myklebust committed Oct 25, 2011
1 parent e40f5e2 commit 8e356b1
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 @@ -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);
}
Expand Down

0 comments on commit 8e356b1

Please sign in to comment.