Commit 785207aa authored by Trond Myklebust's avatar Trond Myklebust Committed by Anna Schumaker

NFS: Fix for xfstests generic/208

If the same page and data is being used for multiple requests,
then ignore that when the request indicates we're reading from the start
of the page.
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent ceaa837f
...@@ -920,6 +920,9 @@ int nfs_generic_pgio(struct nfs_pageio_descriptor *desc, ...@@ -920,6 +920,9 @@ int nfs_generic_pgio(struct nfs_pageio_descriptor *desc,
req = nfs_list_entry(head->next); req = nfs_list_entry(head->next);
nfs_list_move_request(req, &hdr->pages); nfs_list_move_request(req, &hdr->pages);
if (req->wb_pgbase == 0)
last_page = NULL;
if (!last_page || last_page != req->wb_page) { if (!last_page || last_page != req->wb_page) {
pageused++; pageused++;
if (pageused > pagecount) if (pageused > pagecount)
......
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