[PATCH v2 5/5] interrupts: warn on leaked file descriptors
Thomas Monjalon
thomas at monjalon.net
Thu Oct 15 16:47:56 CEST 2026
14/10/2026 18:43, David Marchand:
> Let's warn on interrupt handle that still reference what looks like a
> valid file descriptor.
>
> This will likely raise false positives, but it should help limiting FD
> leaks on the long term.
[...]
> + if (rte_intr_fd_get(intr_handle) >= 0)
> + EAL_LOG(NOTICE, "Some interrupt handle is leaking a FD: %d",
> + rte_intr_fd_get(intr_handle));
> + if (rte_intr_dev_fd_get(intr_handle) >= 0)
> + EAL_LOG(NOTICE, "Some interrupt handle is leaking a device FD: %d",
> + rte_intr_dev_fd_get(intr_handle));
Yes let's check where interrupt FDs are leaked.
The best would be to look for such logs with the -rc1 tests.
Acked-by: Thomas Monjalon <thomas at monjalon.net>
More information about the dev
mailing list