aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/idmap.c
diff options
context:
space:
mode:
authorStanislav Kinsbursky <skinsbursky@parallels.com>2012-01-23 12:26:31 -0500
committerTrond Myklebust <Trond.Myklebust@netapp.com>2012-02-06 18:48:03 -0500
commitdc03085834a4530b2514708a643cd3fe38f35b21 (patch)
treefa90ddfeb798295d42783a8a336b4cd905f7fed1 /fs/nfs/idmap.c
parent28cd1b3f262dba56b5e335ba668e342d530f6129 (diff)
NFS: make nfs_client_lock per net ns
This patch makes nfs_clients_lock allocated per network namespace. All items it protects are already network namespace aware. Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/idmap.c')
-rw-r--r--fs/nfs/idmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfs/idmap.c b/fs/nfs/idmap.c
index 2f78f0ce2664..d2afcd8354ef 100644
--- a/fs/nfs/idmap.c
+++ b/fs/nfs/idmap.c
@@ -536,7 +536,7 @@ static int rpc_pipefs_event(struct notifier_block *nb, unsigned long event,
536 struct nfs_client *clp; 536 struct nfs_client *clp;
537 int error = 0; 537 int error = 0;
538 538
539 spin_lock(&nfs_client_lock); 539 spin_lock(&nn->nfs_client_lock);
540 list_for_each_entry(clp, &nn->nfs_client_list, cl_share_link) { 540 list_for_each_entry(clp, &nn->nfs_client_list, cl_share_link) {
541 if (clp->rpc_ops != &nfs_v4_clientops) 541 if (clp->rpc_ops != &nfs_v4_clientops)
542 continue; 542 continue;
@@ -544,7 +544,7 @@ static int rpc_pipefs_event(struct notifier_block *nb, unsigned long event,
544 if (error) 544 if (error)
545 break; 545 break;
546 } 546 }
547 spin_unlock(&nfs_client_lock); 547 spin_unlock(&nn->nfs_client_lock);
548 return error; 548 return error;
549} 549}
550 550