]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Use error handler on failed GETATTR with successful OPEN
authorAndy Adamson <andros@netapp.com>
Fri, 23 May 2014 13:22:59 +0000 (06:22 -0700)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 29 May 2014 20:46:03 +0000 (16:46 -0400)
commit9d626d5586b54e33e4c41242f20f39433c05879e
tree4903b31b49e380baa35a0fb01c1f706fa6cc08c6
parentc73a640e5fba43769425558675aee98717fd6fae
NFSv4: Use error handler on failed GETATTR with successful OPEN

Place the call to resend the failed GETATTR under the error handler so that
when appropriate, the GETATTR is retried more than once.

The server can fail the GETATTR op in the OPEN compound with a recoverable
error such as NFS4ERR_DELAY. In the case of an O_EXCL open, the server has
created the file, so a retrans of the OPEN call will fail with NFS4ERR_EXIST.

Signed-off-by: Andy Adamson <andros@netapp.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/nfs4proc.c