SUNRPC: move per-net operations from svc_destroy()
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Mon, 25 Jun 2012 20:40:09 +0000 (16:40 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jul 2012 16:04:39 +0000 (09:04 -0700)
commitee92389156c2cdb45b94866186a4174858b820cd
treece025a20a1c679a511d174df4a0818f8146cbf0a
parent10762419cafd82a9a3a6f68bef54c29f1af75842
SUNRPC: move per-net operations from svc_destroy()

upstream commit 786185b5f8abefa6a8a16695bb4a59c164d5a071.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/lockd/svc.c
fs/nfs/callback.c
fs/nfsd/nfsctl.c
fs/nfsd/nfssvc.c
net/sunrpc/svc.c