]> git.baikalelectronics.ru Git - kernel.git/commit
NFSv4: Fix another reboot recovery race
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 28 Mar 2013 18:01:33 +0000 (14:01 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 28 Mar 2013 20:22:16 +0000 (16:22 -0400)
commitbc8b4736b9f9b6097f5b2b70193f874041f03a2a
tree3a1493eff67c3403392ce7264f5c91f186d41184
parent51353733876f8bfc0c10ea50e8db2d29e39248a1
NFSv4: Fix another reboot recovery race

If the open_context for the file is not yet fully initialised,
then open recovery cannot succeed, and since nfs4_state_find_open_context
returns an ENOENT, we end up treating the file as being irrecoverable.

What we really want to do, is just defer the recovery until later.

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