Skip to content
Commit c34fae00 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4: When recovering state fails with EAGAIN, retry the same recovery



If the server returns with EAGAIN when we're trying to recover from
a server reboot, we currently delay for 1 second, but then mark the
stateid as needing recovery after the grace period has expired.

Instead, we should just retry the same recovery process immediately
after the 1 second delay. Break out of the loop after 10 retries.

Fixes: 35a61606 ("NFS: Reduce indentation of the switch statement...")
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
parent 86dbd08b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment