]> git.karo-electronics.de Git - linux-beck.git/commitdiff
SUNRPC: cleanup service destruction
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Tue, 25 Oct 2011 11:17:18 +0000 (14:17 +0300)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 25 Oct 2011 11:19:13 +0000 (13:19 +0200)
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>
net/sunrpc/svc.c

index 918edc310fd1ba91a08b02c371d5324818541c53..407462ff47797cd7f2c48a6272a7621446edcc1c 100644 (file)
@@ -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);
 }