]> git.baikalelectronics.ru Git - kernel.git/commit
pNFS: Don't update the stateid when replying NFS4ERR_DELAY to a layout recall
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Sat, 23 Jun 2018 17:35:28 +0000 (13:35 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 26 Jul 2018 20:25:24 +0000 (16:25 -0400)
commitadb2a5d50c0c6a08e67d88f0ed611898e0f82299
treefe62cb22048f7c616504b10b32c7c964f4f2f15e
parent7a5fe79b4508547b7a8c87f024772d3abc0a54ac
pNFS: Don't update the stateid when replying NFS4ERR_DELAY to a layout recall

RFC5661 doesn't state directly that the client should update the layout
stateid if it returns NFS4ERR_NOMATCHING_LAYOUT in response to a recall,
however it does state that this error will "cleanly indicate completion"
on par with returning the layout. For this reason, we assume that the
client should update the layout stateid. The Linux pNFS server definitely
does expect this behaviour.

However, if the client replies NFS4ERR_DELAY, then it is stating that
the recall was not processed, so it would be very wrong to update the
layout stateid.

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/callback_proc.c