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