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:44:18 +0000 (06:44 +0100)
commit7776aaacda1283f22f1fe98ab2bb38bb0cd898e8
tree23660951876dffc12333ab626bfa0679f10c2ad0
parent607137e3f171dcdd4ae1c5db3c908a9994d2d495
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