summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2009-02-22 23:51:34 +0100
committerJ. Bruce Fields <bfields@citi.umich.edu>2009-03-18 22:38:38 +0100
commit8b671b80707e4fc76adfe4387df07b3be1007c1e (patch)
treed9dafb3a1174dfeb84f72ba56a04625204aab415 /include
parentnfsd4: put_nfs4_client does not require state lock (diff)
downloadlinux-8b671b80707e4fc76adfe4387df07b3be1007c1e.tar.xz
linux-8b671b80707e4fc76adfe4387df07b3be1007c1e.zip
nfsd4: remove use of mutex for file_hashtable
As part of reducing the scope of the client_mutex, and in order to remove the need for mutexes from the callback code (so that callbacks can be done as asynchronous rpc calls), move manipulations of the file_hashtable under the recall_lock. Update the relevant comments while we're here. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Cc: Alexandros Batsakis <batsakis@netapp.com> Reviewed-by: Benny Halevy <bhalevy@panasas.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/nfsd/state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/nfsd/state.h b/include/linux/nfsd/state.h
index 503b6bb53a56..a6e4a00fa392 100644
--- a/include/linux/nfsd/state.h
+++ b/include/linux/nfsd/state.h
@@ -214,7 +214,7 @@ struct nfs4_stateowner {
* share_acces, share_deny on the file.
*/
struct nfs4_file {
- struct kref fi_ref;
+ atomic_t fi_ref;
struct list_head fi_hash; /* hash by "struct inode *" */
struct list_head fi_stateids;
struct list_head fi_delegations;