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

NFSv4: Fix a bug when the server returns NFS4ERR_RESOURCE



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>
parent a8b40bc7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment