提交 d6208769 编写于 作者: T Trond Myklebust

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: NTrond Myklebust <trond.myklebust@primarydata.com>
上级 c0f5f505
...@@ -774,7 +774,7 @@ static void ff_layout_reset_write(struct nfs_pgio_header *hdr, bool retry_pnfs) ...@@ -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); nfs_direct_set_resched_writes(hdr->dreq);
/* fake unstable write to let common nfs resend pages */ /* fake unstable write to let common nfs resend pages */
hdr->verf.committed = NFS_UNSTABLE; hdr->verf.committed = NFS_UNSTABLE;
hdr->good_bytes = 0; hdr->good_bytes = hdr->args.count;
} }
return; return;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册