RE: [PATCH v4 3/4] timer: fix function to stop all timers

2022-08-18 Thread Carrillo, Erik G
> -Original Message- > From: Naga Harish K, S V > Sent: Friday, August 12, 2022 11:08 AM > To: Carrillo, Erik G > Cc: dev@dpdk.org; sta...@dpdk.org > Subject: [PATCH v4 3/4] timer: fix function to stop all timers > > There is a possibility of deadlock in this

[PATCH v4 3/4] timer: fix function to stop all timers

2022-08-12 Thread Naga Harish K S V
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