]> rtime.felk.cvut.cz Git - linux-imx.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)
commit91876b13b8b3cbff5cca8476d4b4eebe5f6038cc
tree3a1493eff67c3403392ce7264f5c91f186d41184
parent6e3cf2415269894895074f139ef2e95ef14ddd5d
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