]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit31710cbb9ca5d64d40a04430b5efecbca718de39
tree3fcbc68bfb122aaf959e8c53e4d5fe0ec752369d
parent5899cf146b486bd15d1143653491789f41a75811
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