mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-25 02:58:54 +00:00
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:
parent
de467742c6
commit
307c55640c
2 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue