]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit57ba4a2111d1d179eb4c3bf5b44602854d997a9f
treedd85580ea6dd577bdd216c81441f5cce4bdd6705
parent1675b292186d58c73901a5db8039a381659131c0
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