aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-07-30 08:27:37 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-08-05 15:00:54 -0400
commitb687f6863eed050aa56fe176e513025907ecd287 (patch)
tree4a89d3e53a45b1c724727750fcedc1441ebaae95 /fs/nfsd
parent74cf76df0f7fa39f4d9d6c43487774d43b31eb80 (diff)
nfsd: remove the client_mutex and the nfs4_lock/unlock_state wrappers
Signed-off-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/nfs4state.c15
-rw-r--r--fs/nfsd/state.h2
2 files changed, 0 insertions, 17 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c
index b900af81791a..2e80a59e7e91 100644
--- a/fs/nfsd/nfs4state.c
+++ b/fs/nfsd/nfs4state.c
@@ -75,9 +75,6 @@ static void nfs4_free_ol_stateid(struct nfs4_stid *stid);
75 75
76/* Locking: */ 76/* Locking: */
77 77
78/* Currently used for almost all code touching nfsv4 state: */
79static DEFINE_MUTEX(client_mutex);
80
81/* 78/*
82 * Currently used for the del_recall_lru and file hash table. In an 79 * Currently used for the del_recall_lru and file hash table. In an
83 * effort to decrease the scope of the client_mutex, this spinlock may 80 * effort to decrease the scope of the client_mutex, this spinlock may
@@ -97,12 +94,6 @@ static struct kmem_cache *file_slab;
97static struct kmem_cache *stateid_slab; 94static struct kmem_cache *stateid_slab;
98static struct kmem_cache *deleg_slab; 95static struct kmem_cache *deleg_slab;
99 96
100void
101nfs4_lock_state(void)
102{
103 mutex_lock(&client_mutex);
104}
105
106static void free_session(struct nfsd4_session *); 97static void free_session(struct nfsd4_session *);
107 98
108static bool is_session_dead(struct nfsd4_session *ses) 99static bool is_session_dead(struct nfsd4_session *ses)
@@ -118,12 +109,6 @@ static __be32 mark_session_dead_locked(struct nfsd4_session *ses, int ref_held_b
118 return nfs_ok; 109 return nfs_ok;
119} 110}
120 111
121void
122nfs4_unlock_state(void)
123{
124 mutex_unlock(&client_mutex);
125}
126
127static bool is_client_expired(struct nfs4_client *clp) 112static bool is_client_expired(struct nfs4_client *clp)
128{ 113{
129 return clp->cl_time == 0; 114 return clp->cl_time == 0;
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index a02358f2442c..32a7c290d027 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -437,8 +437,6 @@ struct nfsd_net;
437extern __be32 nfs4_preprocess_stateid_op(struct net *net, 437extern __be32 nfs4_preprocess_stateid_op(struct net *net,
438 struct nfsd4_compound_state *cstate, 438 struct nfsd4_compound_state *cstate,
439 stateid_t *stateid, int flags, struct file **filp); 439 stateid_t *stateid, int flags, struct file **filp);
440extern void nfs4_lock_state(void);
441extern void nfs4_unlock_state(void);
442void nfs4_put_stid(struct nfs4_stid *s); 440void nfs4_put_stid(struct nfs4_stid *s);
443void nfs4_remove_reclaim_record(struct nfs4_client_reclaim *, struct nfsd_net *); 441void nfs4_remove_reclaim_record(struct nfs4_client_reclaim *, struct nfsd_net *);
444extern void nfs4_release_reclaim(struct nfsd_net *); 442extern void nfs4_release_reclaim(struct nfsd_net *);