]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
NFSv4: Fix reboot recovery in copy offload
authorTrond Myklebust <trond.myklebust@primarydata.com>
Fri, 17 Feb 2017 23:42:32 +0000 (18:42 -0500)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commit839f2f19ae305541ab9e5d8df68098bbccafe7b6
tree31edc80d7ebfa6b74ac8e43184f230942da6fd9b
parentc42847497698fe43714212308b1cd20c3d5eb2bf
NFSv4: Fix reboot recovery in copy offload

BugLink: http://bugs.launchpad.net/bugs/1672544
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>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/nfs/nfs42proc.c