Re: [dpdk-dev] [PATCH v4 1/4] eventdev: fix race condition on timer list counter

2020-07-08 Thread Thomas Monjalon
08/07/2020 15:30, Jerin Jacob: > On Tue, Jul 7, 2020 at 9:25 PM Phil Yang wrote: > > > > The n_poll_lcores counter and poll_lcore array are shared between lcores > > and the update of these variables are out of the protection of spinlock > > on each lcore timer list. The read-modify-write operatio

Re: [dpdk-dev] [PATCH v4 1/4] eventdev: fix race condition on timer list counter

2020-07-08 Thread Jerin Jacob
On Tue, Jul 7, 2020 at 9:25 PM Phil Yang wrote: > > The n_poll_lcores counter and poll_lcore array are shared between lcores > and the update of these variables are out of the protection of spinlock > on each lcore timer list. The read-modify-write operations of the counter > are not atomic, so it

[dpdk-dev] [PATCH v4 1/4] eventdev: fix race condition on timer list counter

2020-07-07 Thread Phil Yang
The n_poll_lcores counter and poll_lcore array are shared between lcores and the update of these variables are out of the protection of spinlock on each lcore timer list. The read-modify-write operations of the counter are not atomic, so it has the potential of race condition between lcores. Use c