[PATCH v2 0/6] Refactor epoll handling in preparation for multithreading