From: Jiri Pirko Date: Fri, 13 Oct 2023 12:10:28 +0000 (+0200) Subject: Documentation: devlink: add a note about RTNL lock into locking section X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bb11cf9b2c4a21f6d1533ffd28feb0ef1fd659bb;p=linux.git 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 Reviewed-by: Simon Horman Signed-off-by: David S. Miller --- diff --git a/Documentation/networking/devlink/index.rst b/Documentation/networking/devlink/index.rst index 52e52a1b603df..2884ad243b54b 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 ----------------