Re: [dpdk-dev] [PATCH v2] timer: fix race condition

2018-12-19 Thread Thomas Monjalon
19/12/2018 17:09, Erik Gabriel Carrillo: > rte_timer_manage() adds expired timers to a "run list", and walks the > list, transitioning each timer from the PENDING to the RUNNING state. > If another lcore resets or stops the timer at precisely this > moment, the timer state would instead be set to C

[dpdk-dev] [PATCH v2] timer: fix race condition

2018-12-19 Thread Erik Gabriel Carrillo
rte_timer_manage() adds expired timers to a "run list", and walks the list, transitioning each timer from the PENDING to the RUNNING state. If another lcore resets or stops the timer at precisely this moment, the timer state would instead be set to CONFIG by that other lcore, which would cause time