devlink: Hold the instance lock in health callbacks
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 28 Jul 2022 15:53:50 +0000 (18:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 04:58:47 +0000 (21:58 -0700)
commitc90005b5f75ce3ef6170281ac4d77e8b7123995b
tree2bcdffb20146a6fcd7debe47874f9c0c26aef6d7
parentd3dbdc9f8ddce46ae2646b2257106d8cdb3d5887
devlink: Hold the instance lock in health callbacks

Let the core take the devlink instance lock around health callbacks and
remove the now redundant locking in the drivers.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/health.c
net/core/devlink.c