nfsd: containerize NFSd filesystem
authorStanislav Kinsbursky <skinsbursky@parallels.com>
Fri, 1 Feb 2013 12:56:12 +0000 (15:56 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 15 Feb 2013 16:21:00 +0000 (11:21 -0500)
commit11f779421a39b86da8a523d97e5fd3477878d44f
tree5a2c01f75d57a1ff23dd0ecec56a378e2b34bb8d
parent1ac8362977b9ec75779170ac3074c7b36ab19b82
nfsd: containerize NFSd filesystem

This patch makes NFSD file system superblock to be created per net.
This makes possible to get proper network namespace from superblock instead of
using hard-coded "init_net".

Note: NFSd fs super-block holds network namespace. This garantees, that
network namespace won't disappear from underneath of it.
This, obviously, means, that in case of kill of a container's "init" (which is not a mount
namespace, but network namespace creator) netowrk namespace won't be
destroyed.

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