diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-07-29 21:34:32 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2014-07-31 14:20:23 -0400 |
commit | d3134b1049c3db8fdac0c6dc9430facf30015a15 (patch) | |
tree | 4fb1c5953fa096049d8f3c648877f1afb32a14ba /fs/nfsd/state.h | |
parent | 5adfd8850ba1463fe675c2df1829fb439e7c7b0f (diff) | |
download | linux-d3134b1049c3db8fdac0c6dc9430facf30015a15.tar.gz linux-d3134b1049c3db8fdac0c6dc9430facf30015a15.tar.bz2 linux-d3134b1049c3db8fdac0c6dc9430facf30015a15.zip |
nfsd: make openstateids hold references to their openowners
Change it so that only openstateids hold persistent references to
openowners. References can still be held by compounds in progress.
With this, we can get rid of NFS4_OO_NEW. It's possible that we
will create a new openowner in the process of doing the open, but
something later fails. In the meantime, another task could find
that openowner and start using it on a successful open. If that
occurs we don't necessarily want to tear it down, just put the
reference that the failing compound holds.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd/state.h')
-rw-r--r-- | fs/nfsd/state.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/nfsd/state.h b/fs/nfsd/state.h index 232246039db0..e073c86f389c 100644 --- a/fs/nfsd/state.h +++ b/fs/nfsd/state.h @@ -367,7 +367,6 @@ struct nfs4_openowner { struct nfs4_ol_stateid *oo_last_closed_stid; time_t oo_time; /* time of placement on so_close_lru */ #define NFS4_OO_CONFIRMED 1 -#define NFS4_OO_NEW 4 unsigned char oo_flags; }; |