DPDK patches and discussions
 help / color / mirror / Atom feed
From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: dev@dpdk.org, david.marchand@redhat.com, chenbox@nvidia.com
Cc: stable@dpdk.org
Subject: Re: [PATCH] vhost: fix FD entries cleanup
Date: Fri, 7 Feb 2025 15:18:33 +0100	[thread overview]
Message-ID: <3365a7f6-ff22-417c-b39f-4d53ac2e6fc5@redhat.com> (raw)
In-Reply-To: <20250206084154.2230766-1-maxime.coquelin@redhat.com>



On 2/6/25 9:41 AM, Maxime Coquelin 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@dpdk.org
> 
> Signed-off-by: David Marchand <david.marchand@redhat.com>
> Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
> ---
>   lib/vhost/fd_man.c | 12 +++++++-----
>   lib/vhost/fd_man.h |  2 +-
>   lib/vhost/socket.c | 11 +++++------
>   lib/vhost/vduse.c  |  9 ++++-----
>   4 files changed, 17 insertions(+), 17 deletions(-)
> 

Applied to next-virtio/for-next-net.

Thanks,
Maxime



      parent reply	other threads:[~2025-02-07 14:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-06  8:41 Maxime Coquelin
2025-02-06 15:15 ` David Marchand
2025-02-07  2:31 ` Chenbo Xia
2025-02-07 14:18 ` Maxime Coquelin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3365a7f6-ff22-417c-b39f-4d53ac2e6fc5@redhat.com \
    --to=maxime.coquelin@redhat.com \
    --cc=chenbox@nvidia.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=stable@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).