mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-26 05:42:15 +00:00
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: Trond Myklebust <trond.myklebust@hammerspace.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
ceaa837f96
commit
785207aa3d
@ -920,6 +920,9 @@ int nfs_generic_pgio(struct nfs_pageio_descriptor *desc,
|
||||
req = nfs_list_entry(head->next);
|
||||
nfs_list_move_request(req, &hdr->pages);
|
||||
|
||||
if (req->wb_pgbase == 0)
|
||||
last_page = NULL;
|
||||
|
||||
if (!last_page || last_page != req->wb_page) {
|
||||
pageused++;
|
||||
if (pageused > pagecount)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user