[PATCH] vhost: fix FD entries cleanup

David Marchand david.marchand at redhat.com
Thu Feb 6 16:15:02 CET 2025


On Thu, Feb 6, 2025 at 9:42 AM Maxime Coquelin
<maxime.coquelin at redhat.com> 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: stable at dpdk.org
>
> Signed-off-by: David Marchand <david.marchand at redhat.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin at redhat.com>

LGTM.


-- 
David Marchand



More information about the stable mailing list