summaryrefslogtreecommitdiffstats
path: root/fs/nfs/client.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-26 15:11:49 +0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-06 18:48:04 -0500
commitc7add9a9720ff5be4715f7a0bb0d9578b2e8534e (patch)
tree9b87930052ffe27acbdb94ac294ea0f073847189 /fs/nfs/client.c
parentbc224f539dcce7805d4bfb68a92f0fe8bb102c22 (diff)
downloadlinux-c7add9a9720ff5be4715f7a0bb0d9578b2e8534e.tar.bz2
NFS: search for client session id in proper network namespace
Network namespace is taken from request transport and passed as a part of cb_process_state structure. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/client.c')
-rw-r--r--fs/nfs/client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/client.c b/fs/nfs/client.c
index 9e11d2988830..2328dcbf6c0b 100644
--- a/fs/nfs/client.c
+++ b/fs/nfs/client.c
@@ -1232,11 +1232,11 @@ nfs4_find_client_ident(struct net *net, int cb_ident)
* Returns NULL if no such client
*/
struct nfs_client *
-nfs4_find_client_sessionid(const struct sockaddr *addr,
+nfs4_find_client_sessionid(struct net *net, const struct sockaddr *addr,
struct nfs4_sessionid *sid)
{
struct nfs_client *clp;
- struct nfs_net *nn = net_generic(&init_net, nfs_net_id);
+ struct nfs_net *nn = net_generic(net, nfs_net_id);
spin_lock(&nn->nfs_client_lock);
list_for_each_entry(clp, &nn->nfs_client_list, cl_share_link) {