• Trond Myklebust's avatar
    NFSv4: Fix a bug when the server returns NFS4ERR_RESOURCE · 52567b03
    Trond Myklebust authored
    RFC 3530 states that when we recieve the error NFS4ERR_RESOURCE, we are not
    supposed to bump the sequence number on OPEN, LOCK, LOCKU, CLOSE, etc
    operations. The problem is that we map that error into EREMOTEIO in the XDR
    layer, and so the NFSv4 middle-layer routines like seqid_mutating_err(),
    and nfs_increment_seqid() don't recognise it.
    
    The fix is to defer the mapping until after the middle layers have
    processed the error.
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    52567b03
nfs4proc.c 136 KB