]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlx5-devlink-mutex-removal-part-1'
authorPaolo Abeni <pabeni@redhat.com>
Tue, 12 Jul 2022 08:26:28 +0000 (10:26 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 12 Jul 2022 08:26:29 +0000 (10:26 +0200)
commit3e4131045b94df21ef26aba7dc99cc82aa5f04e0
treedd85580ea6dd577bdd216c81441f5cce4bdd6705
parent424767d4b192342563ffd181f71e0ea6fbf6a97e
parent57ba4a2111d1d179eb4c3bf5b44602854d997a9f
Merge branch 'mlx5-devlink-mutex-removal-part-1'

Moshe Shemesh Says:
===================
1) Fix devlink lock in mlx5 devlink eswitch callbacks

Following the commit 4bdc70d2af38 "devlink: hold the instance lock
during eswitch_mode callbacks" which takes devlink instance lock for all
devlink eswitch callbacks and adds a temporary workaround, this patchset
removes the workaround, replaces devlink API functions by devl_ API
where called from mlx5 driver eswitch callbacks flows and adds devlink
instance lock in other driver's path that leads to these functions.
While moving to devl_ API the patchset removes part of the devlink API
functions which mlx5 was the last one to use and so not used by any
driver now.

The patchset also remove DEVLINK_NL_FLAG_NO_LOCK flag from the callbacks
of port_new/port which are called only from mlx5 driver and the already
locked by the patchset as parallel paths to the eswitch callbacks using
devl_ API functions.

This patchset will be followed by another patchset that will remove
DEVLINK_NL_FLAG_NO_LOCK flag from devlink reload and devlink health
callbacks. Thus we will have all devlink callbacks locked and it will
pave the way to remove devlink mutex.
===================

Link: https://lore.kernel.org/r/20220711081408.69452-1-saeed@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>