nfsd: make openstateids hold references to their openowners
authorJeff Layton <jlayton@primarydata.com>
Wed, 30 Jul 2014 01:34:32 +0000 (21:34 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 31 Jul 2014 18:20:23 +0000 (14:20 -0400)
commitd3134b1049c3db8fdac0c6dc9430facf30015a15
tree4fb1c5953fa096049d8f3c648877f1afb32a14ba
parent5adfd8850ba1463fe675c2df1829fb439e7c7b0f
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>
fs/nfsd/nfs4state.c
fs/nfsd/state.h
This page took 0.026508 seconds and 5 git commands to generate.