Skip to content

Commit 77a70f9

Browse files
Jiri Pirkokuba-moo
authored andcommitted
Documentation: devlink: fix the locking section
As all callbacks are converted now, fix the text reflecting that change. Suggested-by: Jakub Kicinski <[email protected]> Signed-off-by: Jiri Pirko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent c21e1bf commit 77a70f9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Documentation/networking/devlink/index.rst

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@ new APIs prefixed by ``devl_*``. The older APIs handle all the locking
1313
in devlink core, but don't allow registration of most sub-objects once
1414
the main devlink object is itself registered. The newer ``devl_*`` APIs assume
1515
the devlink instance lock is already held. Drivers can take the instance
16-
lock by calling ``devl_lock()``. It is also held in most of the callbacks.
17-
Eventually all callbacks will be invoked under the devlink instance lock,
18-
refer to the use of the ``DEVLINK_NL_FLAG_NO_LOCK`` flag in devlink core
19-
to find out which callbacks are not converted, yet.
16+
lock by calling ``devl_lock()``. It is also held all callbacks of devlink
17+
netlink commands.
2018

2119
Drivers are encouraged to use the devlink instance lock for their own needs.
2220

0 commit comments

Comments
 (0)