NFS: move per-net callback thread initialization to nfs_callback_up_net()
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Mon, 20 Aug 2012 14:00:16 +0000 (18:00 +0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 1 Oct 2012 22:25:24 +0000 (15:25 -0700)
commitc946556b8749beb357e2d2860e7dac757972dd3d
tree63a7a403984febfcaab31a13726b68be1f627486
parentdd018428dce087b72d9e6a0b32e93cb8088b3aaa
NFS: move per-net callback thread initialization to nfs_callback_up_net()

v4:
1) Callback transport creation routine selection by version simlified.

This new function in now called before nfs_minorversion_callback_svc_setup()).

Also few small changes:
1) current network namespace in nfs_callback_up() was replaced by transport net.
2) svc_shutdown_net() was moved prior to callback usage counter decrement
(because in case of per-net data allocation faulure svc_shutdown_net() have to
be skipped).

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/callback.c
fs/nfs/nfs4client.c