Commit 3dfae093 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

lazy-pages: drop_iovs: mark iov as not queued

If we receive only part of the IOV from the page-server we recalculate the
IOV so it will point to the area we still have to fetch. During the split,
the IOV covering the remaining area may remain marked as 'queued' and we'll
never retry fetching it.
Marking the IOV as not queued will ensure its pages will be requested
again.
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 7ce804ed
......@@ -460,6 +460,8 @@ static int drop_iovs(struct lazy_pages_info *lpi, unsigned long addr, int len)
addr = start;
}
iov->queued = false;
/*
* The range completely fits into the current IOV.
* If addr equals iov_base we just "drop" the
......
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