]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "RDMA/mlx5: Fix devlink deadlock on net namespace deletion"
authorParav Pandit <parav@nvidia.com>
Sun, 17 Jan 2021 09:26:33 +0000 (11:26 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 20 Jan 2021 00:22:59 +0000 (20:22 -0400)
commit6f2a3e1754240856bdace9ce49180b2cf463de1a
tree95ba465e1551d62836659924475f035d35470ec3
parentb0f8c2b535baff2189a4939a0d0438922725eb94
Revert "RDMA/mlx5: Fix devlink deadlock on net namespace deletion"

This reverts commit ac82cd324e51f446c63bdfdf701dc83162a3d01b.

Due to commit in fixes tag, netdevice events were received only in one net
namespace of mlx5_core_dev. Due to this when netdevice events arrive in
net namespace other than net namespace of mlx5_core_dev, they are missed.

This results in empty GID table due to RDMA device being detached from its
net device.

Hence, revert back to receive netdevice events in all net namespaces to
restore back RDMA functionality in non init_net net namespace. The
deadlock will have to be addressed in another patch.

Fixes: ac82cd324e51 ("RDMA/mlx5: Fix devlink deadlock on net namespace deletion")
Link: https://lore.kernel.org/r/20210117092633.10690-1-leon@kernel.org
Signed-off-by: Parav Pandit <parav@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/main.c
drivers/net/ethernet/mellanox/mlx5/core/lib/mlx5.h
include/linux/mlx5/driver.h