devlink: add instance lock assertion in devl_is_registered()
authorJiri Pirko <jiri@nvidia.com>
Wed, 18 Jan 2023 15:21:15 +0000 (16:21 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 20 Jan 2023 03:08:38 +0000 (19:08 -0800)
commit63ba54a52c417a0c632a5f85a2b912b8a2320358
tree98b94d83848ae35db03d954ffb62a6908df1789a
parent543753d9e22e3943e2c31c4b5241afafb55dd52a
devlink: add instance lock assertion in devl_is_registered()

After region and linecard lock removals, this helper is always supposed
to be called with instance lock held. So put the assertion here and
remove the comment which is no longer accurate.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/devlink/devl_internal.h