NFSv4: don't put ACCESS in OPEN compound if O_EXCL
authorWeston Andros Adamson <dros@netapp.com>
Tue, 2 Oct 2012 21:49:52 +0000 (14:49 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 2 Oct 2012 21:56:19 +0000 (14:56 -0700)
commitae2bb03236fc978bdf673c19d39832500793b83c
treee88215f4a387fdcc6ef9183f61d12477b5b7e2bd
parentbbd3a8eee82a2a6f4aa1cce60ccb014f25e5c560
NFSv4: don't put ACCESS in OPEN compound if O_EXCL

Don't put an ACCESS op in OPEN compound if O_EXCL, because ACCESS
will return permission denied for all bits until close.

Fixes a regression due to commit 6168f62c (NFSv4: Add ACCESS operation to
OPEN compound)

Signed-off-by: Weston Andros Adamson <dros@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c
fs/nfs/nfs4xdr.c
include/linux/nfs_xdr.h