DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH 0/1] Avoid race with unregister interrupt hanlder if interrupt
@ 2020-07-24  9:00 Renata Saiakhova
  2020-07-24  9:00 ` [dpdk-dev] [PATCH 1/1] librte_eal: wrapper around rte_intr_callback_unregister() Renata Saiakhova
  0 siblings, 1 reply; 2+ messages in thread
From: Renata Saiakhova @ 2020-07-24  9:00 UTC (permalink / raw)
  Cc: dev, Renata Saiakhova

For pci_vfio, while removing the device by rte_dev_remove(),
pci_vfio_disable_notifier() will call rte_intr_callback_unregister(),
which may return -EAGAIN, if an interrupt source (kernel) has some active
callbacks right now. As a result, the callback (req notifier) can be never unregistered,
and the corresponding descriptor (vfio_req_intr_handle.fd) can be never closed.
The kernel will continuously try to notify the user space using req notifier, but as
the device is already removed, in this case it even cannot find a bus for that
device, the log is full of messages "EAL: Cannot find bus for device (XX:XX.X)"

Renata Saiakhova (1):
  librte_eal: wrapper around rte_intr_callback_unregister().

 lib/librte_eal/freebsd/eal_interrupts.c | 16 ++++++++++++++--
 lib/librte_eal/linux/eal_interrupts.c   | 16 ++++++++++++++--
 2 files changed, 28 insertions(+), 4 deletions(-)

-- 
2.17.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-07-24  9:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-24  9:00 [dpdk-dev] [PATCH 0/1] Avoid race with unregister interrupt hanlder if interrupt Renata Saiakhova
2020-07-24  9:00 ` [dpdk-dev] [PATCH 1/1] librte_eal: wrapper around rte_intr_callback_unregister() Renata Saiakhova

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).