diff options
author | Moshe Shemesh <moshe@nvidia.com> | 2022-07-28 18:53:45 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-07-29 07:58:46 +0300 |
commit | 84a433a40d0ebf3bbf36b8bfa58c6f45dc782344 (patch) | |
tree | 29d14ccf6e933e6f50d2d003c7623a7b65ceec2c /tools/perf/scripts/python/syscall-counts.py | |
parent | c12f4c6ac3b49bdf38b31f7362cfde5ed63ea7cb (diff) | |
download | linux-84a433a40d0ebf3bbf36b8bfa58c6f45dc782344.tar.xz |
net/mlx5: Lock mlx5 devlink reload callbacks
Change devlink instance locks in mlx5 driver to have devlink reload
callbacks locked, while keeping all driver paths which lead to devl_ API
functions called by the driver locked.
Add mlx5_load_one_devl_locked() and mlx5_unload_one_devl_locked() which
are used by the paths which are already locked such as devlink reload
callbacks.
This patch makes the driver use devl_ API also for traps register as
these functions are called from the driver paths parallel to reload that
requires locking now.
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions