acrn-kernel/fs/nfs
Stanislav Kinsbursky 6b13168b36 NFS: make nfs_client_list per net ns
This patch splits global list of NFS clients into per-net-ns array of lists.
This looks more strict and clearer.
BTW, this patch also makes "/proc/fs/nfsfs/servers" entry content depends on
/proc mount owner pid namespace. See below for details.

NOTE: few words about how was /proc/fs/nfsfs/ entries content show per network
namespace done. This is a little bit tricky and not the best is could be. But
it's cheap (proper fix for /proc conteinerization is a hard nut to crack).
The idea is simple: take proper network namespace from pid namespace
child reaper nsproxy of /proc/ mount creator.
This actually means, that if there are 2 containers with different net
namespace sharing pid namespace, then read of /proc/fs/nfsfs/ entries will
always return content, taken from net namespace of pid namespace creator task
(and thus second namespace set wil be unvisible).

Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2012-02-06 18:48:02 -05:00
..
blocklayout NFS: start printks w/ NFS: even if __func__ shown 2012-02-06 18:48:00 -05:00
objlayout NFS: start printks w/ NFS: even if __func__ shown 2012-02-06 18:48:00 -05:00
Kconfig NFS: Fall back on old idmapper if request_key() fails 2012-02-06 18:48:01 -05:00
Makefile
cache_lib.c NFS: remove RPC PipeFS mount point references from NFS cache routines 2012-01-31 18:20:26 -05:00
cache_lib.h NFS: DNS resolver PipeFS notifier introduced 2012-01-31 18:20:26 -05:00
callback.c NFS: start printks w/ NFS: even if __func__ shown 2012-02-06 18:48:00 -05:00
callback.h NFS: add an endian notation 2012-01-12 16:29:51 -05:00
callback_proc.c pnfs: clean up initiate_file_draining layout lookup 2012-01-31 19:28:22 -05:00
callback_xdr.c NFS: start printks w/ NFS: even if __func__ shown 2012-02-06 18:48:00 -05:00
client.c NFS: make nfs_client_list per net ns 2012-02-06 18:48:02 -05:00
delegation.c
delegation.h
dir.c NFS: Optimise away unnecessary setattrs for open(O_TRUNC); 2012-01-31 19:28:07 -05:00
direct.c
dns_resolve.c NFS: parse DNS cache in proper network namespace context 2012-01-31 19:28:17 -05:00
dns_resolve.h NFS: DNS resolver cache per network namespace context introduced 2012-01-31 18:20:26 -05:00
file.c NFS: Ensure that mmapped pages remain stable during writeback 2012-01-31 19:28:08 -05:00
fscache-index.c
fscache.c
fscache.h
getroot.c
idmap.c NFS: make nfs_client_list per net ns 2012-02-06 18:48:02 -05:00
inode.c NFS: make nfs_client_list per net ns 2012-02-06 18:48:02 -05:00
internal.h NFS: make nfs_client_list per net ns 2012-02-06 18:48:02 -05:00
iostat.h
mount_clnt.c SUNRPC: constify the rpc_program 2012-01-31 19:28:20 -05:00
namespace.c
netns.h NFS: make nfs_client_list per net ns 2012-02-06 18:48:02 -05:00
nfs2xdr.c SUNRPC: constify the rpc_program 2012-01-31 19:28:20 -05:00
nfs3acl.c
nfs3proc.c Freezer / sunrpc / NFS: don't allow TASK_KILLABLE sleeps to block the freezer 2011-12-06 22:12:27 +01:00
nfs3xdr.c SUNRPC: constify the rpc_program 2012-01-31 19:28:20 -05:00
nfs4_fs.h NFSv4: Avoid thundering herd issues with nfs_release_seqid 2012-01-31 19:28:21 -05:00
nfs4filelayout.c NFS: start printks w/ NFS: even if __func__ shown 2012-02-06 18:48:00 -05:00
nfs4filelayout.h
nfs4filelayoutdev.c NFS: Fix comparison between DS address lists 2012-02-06 18:48:00 -05:00
nfs4namespace.c SUNRPC: parametrize rpc_pton() by network context 2012-01-31 19:28:12 -05:00
nfs4proc.c NFS: start printks w/ NFS: even if __func__ shown 2012-02-06 18:48:00 -05:00
nfs4renewd.c
nfs4state.c NFS: start printks w/ NFS: even if __func__ shown 2012-02-06 18:48:00 -05:00
nfs4xdr.c NFS: start printks w/ NFS: even if __func__ shown 2012-02-06 18:48:00 -05:00
nfsroot.c
pagelist.c NFS: Remove unnecessary includes from linux/nfs_fs_i.h 2012-01-31 18:20:28 -05:00
pnfs.c NFS: start printks w/ NFS: even if __func__ shown 2012-02-06 18:48:00 -05:00
pnfs.h pnfs-obj: Must return layout on IO error 2012-01-06 08:55:33 -05:00
pnfs_dev.c
proc.c Freezer / sunrpc / NFS: don't allow TASK_KILLABLE sleeps to block the freezer 2011-12-06 22:12:27 +01:00
read.c NFSv41: Add a new helper nfs4_init_sequence() 2012-01-31 19:28:06 -05:00
super.c nfs: remove unneeded NULL pointer check in nfs4_remote_mount 2012-01-31 19:28:23 -05:00
symlink.c
sysctl.c NFS: Fall back on old idmapper if request_key() fails 2012-02-06 18:48:01 -05:00
unlink.c NFSv41: Add a new helper nfs4_init_sequence() 2012-01-31 19:28:06 -05:00
write.c NFSv41: Add a new helper nfs4_init_sequence() 2012-01-31 19:28:06 -05:00