]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'take-devlink-lock-on-mlx4-and-mlx5-callbacks'
authorJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 04:58:49 +0000 (21:58 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Jul 2022 04:58:50 +0000 (21:58 -0700)
commit89246e2f2a455d856bd66e964249b30e8104e1b7
tree2bcdffb20146a6fcd7debe47874f9c0c26aef6d7
parentbad4be0bc20b878debcaa39f986877ed7e4b5c0a
parente3addbcccb56b459113196285bea680ef03c1c1f
Merge branch 'take-devlink-lock-on-mlx4-and-mlx5-callbacks'

Moshe Shemesh says:

====================
Take devlink lock on mlx4 and mlx5 callbacks

Prepare mlx4 and mlx5 drivers to have all devlink callbacks called with
devlink instance locked. Change mlx4 driver to use devl_ API where
needed to have devlink reload callbacks locked. Change mlx5 driver to
use devl_ API where needed to have devlink reload and devlink health
callbacks locked.

As mlx5 is the only driver which needed changes to enable calling health
callbacks with devlink instance locked, this patchset also removes
DEVLINK_NL_FLAG_NO_LOCK flag from devlink health callbacks.

This patchset will be followed by a patchset that will remove
DEVLINK_NL_FLAG_NO_LOCK flag from devlink and will remove devlink_mutex.
====================

Link: https://lore.kernel.org/r/1659023630-32006-1-git-send-email-moshe@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>