numam-dpdk/lib/timer
Naga Harish K S V eb63c85d7b timer: fix stopping all timers
There is a possibility of deadlock in this API,
as same spinlock is tried to be acquired in nested manner.

If the lcore that is stopping the timer is different from the lcore
that owns the timer, the timer list lock is acquired in timer_del(),
even if local_is_locked is true. Because the same lock was already
acquired in rte_timer_stop_all(), the thread will hang.

This patch removes the acquisition of nested lock.

Fixes: 821c51267b ("timer: add function to stop all timers in a list")
Cc: stable@dpdk.org

Signed-off-by: Naga Harish K S V <s.v.naga.harish.k@intel.com>
Acked-by: Erik Gabriel Carrillo <erik.g.carrillo@intel.com>
2022-10-05 15:29:54 +02:00
..
meson.build
rte_timer.c timer: fix stopping all timers 2022-10-05 15:29:54 +02:00
rte_timer.h timer: remove unneeded header includes 2022-06-21 16:46:57 +02:00
version.map version: 22.11-rc0 2022-07-21 12:13:48 +02:00