Monday, May 27, 2019 7:59 AM, Viacheslav Ovsiienko: > Subject: [dpdk-dev] [PATCH v2] net/mlx5: fix event handler uninstall > > When device is being closed and tries to unregister interrupt callback, there > is > a chance the handler is still active (called in context of > eal_intr_thread_main > thread). If so the rte_intr_callback_unregister returns -EAGAIN and keeps > the handler registered, causing crash when underlaying resourse is gone > away. > > This race condition may happen if event handling in application takes a long > time. We should check the return code of unregistering routine and try again > to unregister the handler. The diagnostic messages are shown once a > second, while trying to unregister. > > Fixes: 028b2a28c3cb ("net/mlx5: update event handler for multiport IB > devices") > > Signed-off-by: Viacheslav Ovsiienko <viachesl...@mellanox.com> > Acked-by: Yongseok Koh <ys...@mellanox.com>
Applied to next-net-mlx, thanks.