Re: [PATCH rdma-rc RESEND v1] RDMA/mlx5: Fix devlink deadlock on net namespace deletion

2020-10-26 Thread Jason Gunthorpe
On Mon, Oct 26, 2020 at 03:43:59PM +0200, Parav Pandit wrote: > When a mlx5 core devlink instance is reloaded in different net > namespace, its associated IB device is deleted and recreated. > > Example sequence is: > $ ip netns add foo > $ devlink dev reload pci/:00:08.0 netns foo > $ ip netn

[PATCH rdma-rc RESEND v1] RDMA/mlx5: Fix devlink deadlock on net namespace deletion

2020-10-26 Thread Parav Pandit
When a mlx5 core devlink instance is reloaded in different net namespace, its associated IB device is deleted and recreated. Example sequence is: $ ip netns add foo $ devlink dev reload pci/:00:08.0 netns foo $ ip netns del foo mlx5 IB device needs to attach and detach the netdevice to it thr