devlink: Hold the instance lock in port_new / port_del callbacks
authorMoshe Shemesh <moshe@nvidia.com>
Mon, 11 Jul 2022 08:14:08 +0000 (01:14 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 12 Jul 2022 08:26:23 +0000 (10:26 +0200)
commitf0680ef0f9497f88b513dea1ae54664f0806ecfb
treedd85580ea6dd577bdd216c81441f5cce4bdd6705
parent973598d46ede27bb3b2a54ff45135196aeb9efb0
devlink: Hold the instance lock in port_new / port_del callbacks

Let the core take the devlink instance lock around port_new and port_del
callbacks and remove the now redundant locking in the only driver that
currently use them.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/mellanox/mlx5/core/sf/devlink.c
net/core/devlink.c