aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfs/nfs4_fs.h
diff options
context:
space:
mode:
authorTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-09 10:45:42 -0400
committerTrond Myklebust <Trond.Myklebust@netapp.com>2007-07-10 23:40:43 -0400
commit8bda4e4c98d14566fc1a354c62fb59d70cc49b97 (patch)
treed137e784db33d1347a6b03d22044e9a41e10967f /fs/nfs/nfs4_fs.h
parent1ac7e2fd35905f3d44df06568bca5f9d140369b3 (diff)
NFSv4: Fix up stateid locking...
We really don't need to grab both the state->so_owner and the inode->i_lock. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Diffstat (limited to 'fs/nfs/nfs4_fs.h')
-rw-r--r--fs/nfs/nfs4_fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h
index 4a1c4d80a577..dd1aa2b598ce 100644
--- a/fs/nfs/nfs4_fs.h
+++ b/fs/nfs/nfs4_fs.h
@@ -139,9 +139,11 @@ struct nfs4_state {
139 unsigned long flags; /* Do we hold any locks? */ 139 unsigned long flags; /* Do we hold any locks? */
140 spinlock_t state_lock; /* Protects the lock_states list */ 140 spinlock_t state_lock; /* Protects the lock_states list */
141 141
142 seqlock_t seqlock; /* Protects the stateid/open_stateid */
142 nfs4_stateid stateid; /* Current stateid: may be delegation */ 143 nfs4_stateid stateid; /* Current stateid: may be delegation */
143 nfs4_stateid open_stateid; /* OPEN stateid */ 144 nfs4_stateid open_stateid; /* OPEN stateid */
144 145
146 /* The following 3 fields are protected by owner->so_lock */
145 unsigned int n_rdonly; /* Number of read-only references */ 147 unsigned int n_rdonly; /* Number of read-only references */
146 unsigned int n_wronly; /* Number of write-only references */ 148 unsigned int n_wronly; /* Number of write-only references */
147 unsigned int n_rdwr; /* Number of read/write references */ 149 unsigned int n_rdwr; /* Number of read/write references */