net/mlx4: Lock mlx4 devlink reload callback
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 28 Jul 2022 15:53:48 +0000 (18:53 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 04:58:47 +0000 (21:58 -0700)
commit60d7ceea4b2a2f7106f61a0bb712a71868875106
treef11b100149dc45fbee18749d768cc50b90a1bcc2
parenta8c05514b2f8fe105d69796cce31fb344c50fb2a
net/mlx4: Lock mlx4 devlink reload callback

Change devlink instance locks in mlx4 driver to have devlink reload
callback locked, while keeping all driver paths which leads to devl_ API
functions called by the mlx4 driver locked.

Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlx4/catas.c
drivers/net/ethernet/mellanox/mlx4/main.c