NFSv4: Don't recheck permissions on open in case of recovery cached open
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Apr 2013 18:52:44 +0000 (14:52 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 23 Apr 2013 18:52:44 +0000 (14:52 -0400)
commitbdeca1b76cd56cd10a029f0ad2fd9ab6dd7e313d
tree3fcbc68bfb122aaf959e8c53e4d5fe0ec752369d
parentcd4c9be2c61d4d974d348743fddb8183b8185abc
NFSv4: Don't recheck permissions on open in case of recovery cached open

If we already checked the user access permissions on the original open,
then don't bother checking again on recovery. Doing so can cause a
deadlock with NFSv4.1, since the may_open() operation is not privileged.
Furthermore, we can't report an access permission failure here anyway.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4proc.c