NFS: Fix NFSv3 exclusive open semantics
commitf5cc08212d21eb9e855ea6d4ad2b5a68afcf06a9
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 13 Jan 2011 19:15:50 +0000 (13 14:15 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:13 +0000 (17 15:14 -0800)
treebde13aa2665440bec6b47bda52cca79c363b0559
parent55ea499d60aefa3d03a77fc8590c26b5881faa92
NFS: Fix NFSv3 exclusive open semantics

commit 8a0eebf66e3b1deae036553ba641a9c2bdbae678 upstream.

Commit c0204fd2b8fe047b18b67e07e1bf2a03691240cd (NFS: Clean up
nfs4_proc_create()) broke NFSv3 exclusive open by removing the code
that passes the O_EXCL flag down to nfs3_proc_create(). This patch
reverts that offending hunk from the original commit.

Reported-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Tested-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/nfs/dir.c