Commit 06e252de authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

util: epoll: move comment about timeout decrease to uffd.c

The generic epoll_wait wrapper should not do any assumptions about timeout.
It's it up to lazy-pages daemon to make (future) policy decisions.
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 3dfae093
......@@ -1105,6 +1105,7 @@ static void lazy_pages_summary(struct lazy_pages_info *lpi)
static int handle_requests(int epollfd, struct epoll_event *events, int nr_fds)
{
struct lazy_pages_info *lpi, *n;
/* FIXME -- timeout should decrease over time... */
int poll_timeout = POLL_TIMEOUT;
int ret;
......
......@@ -1300,7 +1300,6 @@ int epoll_run_rfds(int epollfd, struct epoll_event *evs, int nr_fds, int timeout
bool have_a_break = false;
while (1) {
/* FIXME -- timeout should decrease over time... */
ret = epoll_wait(epollfd, evs, nr_fds, timeout);
if (ret <= 0) {
if (ret < 0)
......
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