]> 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)
commit44c26a7474b2bdd2441cf38bd6d8c68f0f76f179
treee29f374b78a2960167eb0d27a934ae53a2355a04
parent9e2bf7cbc1b190dc574c25336b2ea5d1cb14c394
Revert "net: devlink: add RNLT lock assertion to devlink_compat_switch_id_get()"

This reverts commit 5bccb0b15534c1f1c143b5256472d0c6dcb5b54a.

The assertion was intentionally removed in commit 0686cc1fb4b1 ("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