[RFC 0/3] Vhost: fix FD entries cleanup
Maxime Coquelin
maxime.coquelin at redhat.com
Tue Dec 24 16:49:55 CET 2024
The vhost FD manager provides a way for the read/write
callbacks to request removal of their associated FD from
the epoll FD set. Problem is that it is missing a cleanup
callback, so the read/write callback requesting the removal
have to perform cleanups before the FD is removed from the
FD set. It includes closing the FD before it is removed
from the epoll FD set.
This series introduces a new cleanup callback which, if
implemented, is closed right after the FD is removed from
FD set.
Maxime Coquelin (3):
vhost: add cleanup callback to FD entries
vhost: fix vhost-user socket cleanup order
vhost: improve VDUSE reconnect handler cleanup
lib/vhost/fd_man.c | 16 ++++++++++++----
lib/vhost/fd_man.h | 3 ++-
lib/vhost/socket.c | 46 ++++++++++++++++++++++++++--------------------
lib/vhost/vduse.c | 16 +++++++++++-----
4 files changed, 51 insertions(+), 30 deletions(-)
--
2.47.1
More information about the dev
mailing list