Commit 48ac6c92 authored by Trond Myklebust's avatar Trond Myklebust Committed by Greg Kroah-Hartman

pNFS/flexfiles: Fix the reset of struct pgio_header when resending

commit d6208769 upstream.

hdr->good_bytes needs to be set to the length of the request, not
zero.
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 759367b8
......@@ -631,7 +631,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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment