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

Jerin Jacob jerinjacobk at gmail.com
Wed Jul 8 15:30:51 CEST 2020


On Tue, Jul 7, 2020 at 9:25 PM Phil Yang <phil.yang at arm.com> 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 has the potential of race condition between lcores.
>
> Use c11 atomics with RELAXED ordering to prevent confliction.
>
> Fixes: cc7b73ea9e3b ("eventdev: add new software timer adapter")
> Cc: erik.g.carrillo at intel.com
> Cc: stable at dpdk.org
>
> Signed-off-by: Phil Yang <phil.yang at arm.com>
> Reviewed-by: Dharmik Thakkar <dharmik.thakkar at arm.com>
> Reviewed-by: Ruifeng Wang <ruifeng.wang at arm.com>
> Acked-by: Erik Gabriel Carrillo <erik.g.carrillo at intel.com>

Hi Thomas,

The latest version does not have ABI breakage issue.

I have added the ABI verifier in my local patch verification setup.

Series applied to dpdk-next-eventdev/master.

Please pull this series from dpdk-next-eventdev/master. Thanks.

I am marking this patch series as "Awaiting Upstream" in patchwork
status to reflect the actual status.


More information about the dev mailing list