]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: minimal: Fix deadlock in ports creation
authorVadim Pasternak <vadimp@nvidia.com>
Thu, 11 Aug 2022 09:57:36 +0000 (11:57 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 11 Aug 2022 15:59:33 +0000 (08:59 -0700)
commit91e85535057a59fda189b9d50fd3e7abdd5c4111
treee09866fe3f5f8efad057201575595fc5937d9dd8
parent11e134132fb0beb1584dcbbec18804a6efd7447c
mlxsw: minimal: Fix deadlock in ports creation

Drop devl_lock() / devl_unlock() from ports creation and removal flows
since the devlink instance lock is now taken by mlxsw_core.

Fixes: 2287508ff7e4 ("mlxsw: convert driver to use unlocked devlink API during init/fini")
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/f4afce5ab0318617f3866b85274be52542d59b32.1660211614.git.petrm@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/minimal.c