diff options
author | Jiri Pirko <jiri@nvidia.com> | 2022-08-23 09:02:13 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-24 19:32:02 -0700 |
commit | 77a70f9c5b8678218a51cf2ae39a52cb4b6bc16c (patch) | |
tree | 167ef549b3d3e69868124d2b86d2ffa4d61ec569 /Documentation/networking | |
parent | c21e1bf4d8104fb77bbd99f3d1276c0d7c9b28d9 (diff) | |
download | linux-stable-77a70f9c5b8678218a51cf2ae39a52cb4b6bc16c.tar.gz linux-stable-77a70f9c5b8678218a51cf2ae39a52cb4b6bc16c.tar.bz2 linux-stable-77a70f9c5b8678218a51cf2ae39a52cb4b6bc16c.zip |
Documentation: devlink: fix the locking section
As all callbacks are converted now, fix the text reflecting that change.
Suggested-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20220823070213.1008956-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'Documentation/networking')
-rw-r--r-- | Documentation/networking/devlink/index.rst | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Documentation/networking/devlink/index.rst b/Documentation/networking/devlink/index.rst index e3a5f985673e..4b653d040627 100644 --- a/Documentation/networking/devlink/index.rst +++ b/Documentation/networking/devlink/index.rst @@ -13,10 +13,8 @@ new APIs prefixed by ``devl_*``. The older APIs handle all the locking in devlink core, but don't allow registration of most sub-objects once the main devlink object is itself registered. The newer ``devl_*`` APIs assume the devlink instance lock is already held. Drivers can take the instance -lock by calling ``devl_lock()``. It is also held in most of the callbacks. -Eventually all callbacks will be invoked under the devlink instance lock, -refer to the use of the ``DEVLINK_NL_FLAG_NO_LOCK`` flag in devlink core -to find out which callbacks are not converted, yet. +lock by calling ``devl_lock()``. It is also held all callbacks of devlink +netlink commands. Drivers are encouraged to use the devlink instance lock for their own needs. |