SUNRPC: move per-net operations from svc_destroy()
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Fri, 4 May 2012 08:49:41 +0000 (12:49 +0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 1 Jun 2012 00:29:40 +0000 (20:29 -0400)
commit786185b5f8abefa6a8a16695bb4a59c164d5a071
tree780eafd98f98a093fda540898595b47b4261764c
parent9793f7c88937e7ac07305ab1af1a519225836823
SUNRPC: move per-net operations from svc_destroy()

The idea is to separate service destruction and per-net operations,
because these are two different things and the mix looks ugly.

Notes:

1) For NFS server this patch looks ugly (sorry for that). But these
place will be rewritten soon during NFSd containerization.

2) LockD per-net counter increase int lockd_up() was moved prior to
make_socks() to make lockd_down_net() call safe in case of error.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svc.c
fs/nfs/callback.c
fs/nfsd/nfsctl.c
fs/nfsd/nfssvc.c
net/sunrpc/svc.c