aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/networking
diff options
context:
space:
mode:
authorJiri Pirko <jiri@nvidia.com>2023-10-13 14:10:28 +0200
committerDavid S. Miller <davem@davemloft.net>2023-10-18 09:23:01 +0100
commitbb11cf9b2c4a21f6d1533ffd28feb0ef1fd659bb (patch)
treecded6f8d7b970640e16e8941756535f5089a5817 /Documentation/networking
parentb6f23b319aadae50a03b06c3067bc7e4a659e43b (diff)
downloadlinux-bb11cf9b2c4a21f6d1533ffd28feb0ef1fd659bb.tar.gz
Documentation: devlink: add a note about RTNL lock into locking section
Add a note describing the locking order of taking RTNL lock with devlink instance lock. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking')
-rw-r--r--Documentation/networking/devlink/index.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/networking/devlink/index.rst b/Documentation/networking/devlink/index.rst
index 52e52a1b603dfd..2884ad243b54b4 100644
--- a/Documentation/networking/devlink/index.rst
+++ b/Documentation/networking/devlink/index.rst
@@ -18,6 +18,10 @@ netlink commands.
Drivers are encouraged to use the devlink instance lock for their own needs.
+Drivers need to be cautious when taking devlink instance lock and
+taking RTNL lock at the same time. Devlink instance lock needs to be taken
+first, only after that RTNL lock could be taken.
+
Nested instances
----------------