On Thu, Feb 6, 2025 at 9:42 AM Maxime Coquelin <[email protected]> wrote: > > With the recent rework of the FD manager to use epoll, > an error message is emitted with Vhost-user at FD entry > removal: > > ERR|VHOST_FDMAN: could not remove 102 fd from 101 epfd: No such file or > directory > > It occurs because the read callback closes the file > descriptor before it is removed from the FD set. > This patch defers the close() after the FD entry is removed > from the set. > > Fixes: 0e38b42bf61c ("vhost: manage FD with epoll") > Cc: [email protected] > > Signed-off-by: David Marchand <[email protected]> > Signed-off-by: Maxime Coquelin <[email protected]>
LGTM. -- David Marchand

