]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "net: devlink: add RNLT lock assertion to devlink_compat_switch_id_get()"
authorVlad Buslov <vladbu@nvidia.com>
Mon, 29 Aug 2022 12:13:24 +0000 (14:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 31 Aug 2022 06:21:17 +0000 (23:21 -0700)
commit1c786614f8dec07021609c7f69d6e40d81a0b8cf
treee29f374b78a2960167eb0d27a934ae53a2355a04
parentef128163661921d4457834b7d89b72bdbc7c215f
Revert "net: devlink: add RNLT lock assertion to devlink_compat_switch_id_get()"

This reverts commit 65f05f2f6ddc51671f0e1609cdd98542641ff468.

The assertion was intentionally removed in commit 0d580336de4f ("net:
devlink: remove redundant rtnl lock assert") and, contrary what is
described in the commit message, the comment reflects that: "Caller must
hold RTNL mutex or reference to dev...".

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Tested-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/20220829121324.3980376-1-vladbu@nvidia.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/devlink.c