Commit 4c0d56f4 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

lazy-pages: make epollfd part of global daemon state

We only use one epoll instance to manage lazy-pages related I/O. Making
epollfd file-visible will allow cleaner implementation of the restored
process exit() calls tracking.
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 6b1dbb1e
...@@ -92,9 +92,11 @@ struct lazy_pages_info { ...@@ -92,9 +92,11 @@ struct lazy_pages_info {
void *buf; void *buf;
}; };
/* global lazy-pages daemon state */
static LIST_HEAD(lpis); static LIST_HEAD(lpis);
static LIST_HEAD(exiting_lpis); static LIST_HEAD(exiting_lpis);
static LIST_HEAD(pending_lpis); static LIST_HEAD(pending_lpis);
static int epollfd;
static int handle_uffd_event(struct epoll_rfd *lpfd); static int handle_uffd_event(struct epoll_rfd *lpfd);
...@@ -1119,7 +1121,6 @@ close_uffd: ...@@ -1119,7 +1121,6 @@ close_uffd:
int cr_lazy_pages(bool daemon) int cr_lazy_pages(bool daemon)
{ {
struct epoll_event *events; struct epoll_event *events;
int epollfd;
int nr_fds; int nr_fds;
int lazy_sk; int lazy_sk;
int ret; int ret;
......
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