• Jeff Layton's avatar
    nfs4: handle -EKEYEXPIRED errors from RPC layer · 2c643488
    Jeff Layton authored
    If a KRB5 TGT ticket expires, we don't want to return an error
    immediatel. If someone has a long running job and just forgets to run
    "kinit" in time then this will make it fail.
    
    Instead, we want to treat this situation as we would NFS4ERR_DELAY and
    retry the upcall after delaying a bit with an exponential backoff.
    
    This patch just makes any place that would handle NFS4ERR_DELAY also
    handle -EKEYEXPIRED the same way. In the future, we may want to be more
    sophisticated however and handle hard vs. soft mounts differently, or
    specify some upper limit on how long we'll wait for a new TGT to be
    acquired.
    Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    2c643488
nfs4state.c 37.4 KB