DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Burakov, Anatoly" <anatoly.burakov@intel.com>
To: David Marchand <david.marchand@redhat.com>
Cc: <dev@dpdk.org>, Harman Kalra <hkalra@marvell.com>
Subject: Re: [PATCH v4 8/8] interrupts: warn on leaked event FDs
Date: Sat, 24 Oct 2026 11:57:53 +0200	[thread overview]
Message-ID: <32ad22af-a3dd-4fcf-94cc-cf698cef44fe@intel.com> (raw)
In-Reply-To: <CAJFAV8yh9UxD9D+bNCvh+tcKASpVg0x=czpDfdJnVvgXxPmxsg@mail.gmail.com>

On 10/24/2026 10:56 AM, David Marchand wrote:
> On Fri, 23 Oct 2026 at 16:48, Burakov, Anatoly
> <anatoly.burakov@intel.com> wrote:
>>
>> On 10/23/2026 4:41 PM, David Marchand wrote:
>>> On Fri, 23 Oct 2026 at 15:52, Anatoly Burakov <anatoly.burakov@intel.com> wrote:
>>>> diff --git a/lib/eal/linux/eal_interrupts.c b/lib/eal/linux/eal_interrupts.c
>>>> index aadb7b84a22..f6f51ba53c0 100644
>>>> --- a/lib/eal/linux/eal_interrupts.c
>>>> +++ b/lib/eal/linux/eal_interrupts.c
>>>> @@ -1667,6 +1667,8 @@ rte_intr_efd_disable(struct rte_intr_handle *intr_handle)
>>>>                   for (i = 0; i < (uint32_t)rte_intr_nb_efd_get(intr_handle); i++)
>>>>                           close(rte_intr_efds_index_get(intr_handle, i));
>>>>           }
>>>> +       for (i = 0; i < (uint32_t)rte_intr_nb_efd_get(intr_handle); i++)
>>>> +               rte_intr_efds_index_set(intr_handle, i, -1);
>>>
>>> We don't want to waive for types != VFIO_MSIX, do we?
>>>
>>
>> Looking into this further, I suspectwe want to check for != VDEV
>> instead. All handle types except VDEV will write into the handle.
> 
> Indeed, I had misunderstood rte_intr_efd_enable...
> Ok, I'll respin those patches as part of my series and let the whole
> set of changes go through CI.
> 
> 

Yes, the efd name is confusing because not all handles created by our 
interrupt subsystem are efd

-- 
Thanks,
Anatoly

      reply	other threads:[~2026-10-24  9:58 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-10-23  9:36 [PATCH v1 1/1] eal/linux: fix eventfd leaks when enabling interrupts Anatoly Burakov
2026-10-23 11:42 ` David Marchand
2026-10-23 12:25   ` Burakov, Anatoly
2026-10-23 13:07 ` [PATCH v2 1/3] eal/linux: fix closing of event FDs not owned by EAL Anatoly Burakov
2026-10-23 13:07   ` [PATCH v2 2/3] interrupts: warn on leaked event FDs Anatoly Burakov
2026-10-23 13:07   ` [PATCH v2 3/3] eal/linux: fix eventfd leaks when enabling interrupts Anatoly Burakov
2026-10-23 13:39 ` [PATCH v3 1/8] interrupts: fix size of duplicated instance Anatoly Burakov
2026-10-23 13:39   ` [PATCH v3 2/8] interrupts: fix event arrays copy on instance duplication Anatoly Burakov
2026-10-23 13:39   ` [PATCH v3 3/8] eal/linux: fix closing of event FDs not owned by EAL Anatoly Burakov
2026-10-23 13:39   ` [PATCH v3 4/8] eal/linux: fix eventfd leaks when enabling interrupts Anatoly Burakov
2026-10-23 13:39   ` [PATCH v3 5/8] eal/linux: fix leaked FD warnings for interrupt sources Anatoly Burakov
2026-10-23 13:39   ` [PATCH v3 6/8] eal/freebsd: fix interrupt source handle leak Anatoly Burakov
2026-10-23 13:39   ` [PATCH v3 7/8] bus/pci: fix leaked device FD warning on VFIO unmap Anatoly Burakov
2026-10-23 13:49     ` Burakov, Anatoly
2026-10-23 13:39   ` [PATCH v3 8/8] interrupts: warn on leaked event FDs Anatoly Burakov
2026-10-23 13:51 ` [PATCH v4 1/8] interrupts: fix size of duplicated instance Anatoly Burakov
2026-10-23 13:51   ` [PATCH v4 2/8] interrupts: fix event arrays copy on instance duplication Anatoly Burakov
2026-10-23 14:15     ` David Marchand
2026-10-23 14:36       ` Burakov, Anatoly
2026-10-23 14:44         ` David Marchand
2026-10-23 14:55           ` Burakov, Anatoly
2026-10-23 13:51   ` [PATCH v4 3/8] eal/linux: fix closing of event FDs not owned by EAL Anatoly Burakov
2026-10-23 14:17     ` David Marchand
2026-10-23 13:51   ` [PATCH v4 4/8] eal/linux: fix eventfd leaks when enabling interrupts Anatoly Burakov
2026-10-23 14:37     ` David Marchand
2026-10-23 13:51   ` [PATCH v4 5/8] eal/linux: fix leaked FD warnings for interrupt sources Anatoly Burakov
2026-10-23 13:51   ` [PATCH v4 6/8] eal/freebsd: fix interrupt source handle leak Anatoly Burakov
2026-10-23 13:51   ` [PATCH v4 7/8] bus/pci: fix leaked device FD warning on VFIO unmap Anatoly Burakov
2026-10-23 13:51   ` [PATCH v4 8/8] interrupts: warn on leaked event FDs Anatoly Burakov
2026-10-23 14:41     ` David Marchand
2026-10-23 14:48       ` Burakov, Anatoly
2026-10-24  8:56         ` David Marchand
2026-10-24  9:57           ` Burakov, Anatoly [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=32ad22af-a3dd-4fcf-94cc-cf698cef44fe@intel.com \
    --to=anatoly.burakov@intel.com \
    --cc=david.marchand@redhat.com \
    --cc=dev@dpdk.org \
    --cc=hkalra@marvell.com \
    /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