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: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Mike Rapoport 2017-11-22 21:37:08 +02:00 committed by Andrei Vagin
parent de467742c6
commit 307c55640c
2 changed files with 1 additions and 1 deletions

View file

@ -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;

View file

@ -1350,7 +1350,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)