nfsd: declare v4.1+ openowners confirmed on creation
authorJeff Layton <jlayton@primarydata.com>
Mon, 30 Jun 2014 15:48:36 +0000 (11:48 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Jul 2014 21:14:35 +0000 (17:14 -0400)
commitdb24b3b4b2a510ad0face05aec1c5bfbe89050bb
treeb630d15752fbce01a1c0a4422161f2ee2ca42e35
parentb607664ee74313c7f3f657a044eda572051e560e
nfsd: declare v4.1+ openowners confirmed on creation

There's no need to confirm an openowner in v4.1 and above, so we can
go ahead and set NFS4_OO_CONFIRMED when we create openowners in
those versions. This will also be necessary when we remove the
client_mutex, as it'll be possible for two concurrent opens to race
in versions >4.0.

Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c