NFS: Fix NFSv3 exclusive open semantics
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 13 Jan 2011 19:15:50 +0000 (14:15 -0500)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 20:06:29 +0000 (12:06 -0800)
commit8a0eebf66e3b1deae036553ba641a9c2bdbae678
tree642d4367dd30a55f78244891479cc08f2983eb7e
parent581548db3b3c0f6e25b500329eb02e3c72e7acbe
NFS: Fix NFSv3 exclusive open semantics

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>
Cc: stable@kernel.org [2.6.37]
Tested-by: Nick Bowler <nbowler@elliptictech.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/nfs/dir.c