nfsd: use "init_net" for portmapper
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Mon, 10 Dec 2012 09:19:04 +0000 (12:19 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 10 Dec 2012 21:25:32 +0000 (16:25 -0500)
commitf7fb86c6e639360ad9c253cec534819ef928a674
tree5001ffc2c559f863b2c578963b32c1d4ed32536c
parent7007c90fb9fef593b4aeaeee57e6a6754276c97c
nfsd: use "init_net" for portmapper

There could be a situation, when NFSd was started in one network namespace, but
stopped in another one.
This will trigger kernel panic, because RPCBIND client is stored on per-net
NFSd data, and will be NULL on NFSd shutdown.

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfssvc.c