NFSv4: Fix reboot recovery in copy offload
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 17 Feb 2017 23:42:32 +0000 (18:42 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 05:41:51 +0000 (06:41 +0100)
commit77bbc0c7712a43442e2637247eaa4f01f73f0eb8
tree63bd755f1f09592b6b63b3fc9dad4425063f3ac0
parent0465339eb54953f0be1f03e980b07eeb01e16fca
NFSv4: Fix reboot recovery in copy offload

commit 9d8cacbf5636657d2cd0dda17438a56d806d3224 upstream.

Copy offload code needs to be hooked into the code for handling
NFS4ERR_BAD_STATEID by ensuring that we set the "stateid" field
in struct nfs4_exception.

Reported-by: Olga Kornievskaia <aglo@umich.edu>
Fixes: 2e72448b07dc3 ("NFS: Add COPY nfs operation")
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/nfs42proc.c