aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/state.h
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2014-06-30 11:48:38 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-07-08 17:14:37 -0400
commit3c87b9b7c05d7775a3d942de588296025023c6d2 (patch)
tree5f2f480974ad925b754b91cea2037d5237bc28e4 /fs/nfsd/state.h
parentacf9295b1c4e60fc205e21b7a5c9dc6e1cb2764a (diff)
nfsd: lock owners are not per open stateid
In the NFSv4 spec, lock stateids are per-file objects. Lockowners are not. This patch replaces the current list of lock owners in the open stateids with a list of lock stateids. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r--fs/nfsd/state.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h
index 62f33b7ec10c..c1e384a0a40a 100644
--- a/fs/nfsd/state.h
+++ b/fs/nfsd/state.h
@@ -365,7 +365,6 @@ struct nfs4_openowner {
365struct nfs4_lockowner { 365struct nfs4_lockowner {
366 struct nfs4_stateowner lo_owner; /* must be first element */ 366 struct nfs4_stateowner lo_owner; /* must be first element */
367 struct list_head lo_owner_ino_hash; /* hash by owner,file */ 367 struct list_head lo_owner_ino_hash; /* hash by owner,file */
368 struct list_head lo_perstateid;
369 struct list_head lo_list; /* for temporary uses */ 368 struct list_head lo_list; /* for temporary uses */
370}; 369};
371 370
@@ -433,7 +432,7 @@ struct nfs4_ol_stateid {
433 struct nfs4_stid st_stid; /* must be first field */ 432 struct nfs4_stid st_stid; /* must be first field */
434 struct list_head st_perfile; 433 struct list_head st_perfile;
435 struct list_head st_perstateowner; 434 struct list_head st_perstateowner;
436 struct list_head st_lockowners; 435 struct list_head st_locks;
437 struct nfs4_stateowner * st_stateowner; 436 struct nfs4_stateowner * st_stateowner;
438 struct nfs4_file * st_file; 437 struct nfs4_file * st_file;
439 unsigned long st_access_bmap; 438 unsigned long st_access_bmap;