[dpdk-dev] [dpdk-stable] [PATCH] net/mlx5: fix deadlock of link status alarm

Shahaf Shuler shahafs at mellanox.com
Mon Jan 15 07:45:41 CET 2018


Wednesday, January 10, 2018 7:47 PM, Yongseok Koh:
> If mlx5_dev_link_status_handler() is executed while canceling the alarm,
> deadlock can happen because rte_eal_alarm_cancel() waits for all callbackes
> to finish execution and both calls are protected by priv->lock.
> 
> Fixes: 198a3c339a8f ("mlx5: handle link status interrupts")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Yongseok Koh <yskoh at mellanox.com>
> Acked-by: Nelio Laranjeiro <nelio.laranjeiro at 6wind.com>
> ---
>  drivers/net/mlx5/mlx5.h        | 16 ++++++++++++++++
>  drivers/net/mlx5/mlx5_ethdev.c | 13 +++++++++----
>  2 files changed, 25 insertions(+), 4 deletions(-)
> 

Applied to next-net-mlx, thanks. 


More information about the dev mailing list