summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-06-26 15:37:58 -0400
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-06-26 15:39:50 -0400
commitd620876990f02788d5a663075df007ffb91bdfad (patch)
treee7d58e4340e3cb4dfb5fab66bf984b4fcf99655f /fs/nfs
parentc0f5f5059f6c9c9efb6ca688f4d6a800c11f6b58 (diff)
downloadlinux-stable-d620876990f02788d5a663075df007ffb91bdfad.tar.gz
linux-stable-d620876990f02788d5a663075df007ffb91bdfad.tar.bz2
linux-stable-d620876990f02788d5a663075df007ffb91bdfad.zip
pNFS/flexfiles: Fix the reset of struct pgio_header when resending
hdr->good_bytes needs to be set to the length of the request, not zero. Cc: stable@vger.kernel.org # 4.0+ Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/flexfilelayout/flexfilelayout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/flexfilelayout/flexfilelayout.c b/fs/nfs/flexfilelayout/flexfilelayout.c
index 594ab35eacfb..c12951b9551e 100644
--- a/fs/nfs/flexfilelayout/flexfilelayout.c
+++ b/fs/nfs/flexfilelayout/flexfilelayout.c
@@ -774,7 +774,7 @@ static void ff_layout_reset_write(struct nfs_pgio_header *hdr, bool retry_pnfs)
nfs_direct_set_resched_writes(hdr->dreq);
/* fake unstable write to let common nfs resend pages */
hdr->verf.committed = NFS_UNSTABLE;
- hdr->good_bytes = 0;
+ hdr->good_bytes = hdr->args.count;
}
return;
}