Searched hist:ed539ba614a079ea696b92beef1eafec66f831a4 (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/net/devlink/ |
H A D | netlink.c | diff ed539ba614a079ea696b92beef1eafec66f831a4 Fri Jan 06 00:33:57 CST 2023 Jakub Kicinski <kuba@kernel.org> devlink: always check if the devlink instance is registered
Always check under the instance lock whether the devlink instance is still / already registered.
This is a no-op for the most part, as the unregistration path currently waits for all references. On the init path, however, we may temporarily open up a race with netdev code, if netdevs are registered before the devlink instance. This is temporary, the next change fixes it, and this commit has been split out for the ease of review.
Note that in case of iterating over sub-objects which have their own lock (regions and line cards) we assume an implicit dependency between those objects existing and devlink unregistration.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | core.c | diff ed539ba614a079ea696b92beef1eafec66f831a4 Fri Jan 06 00:33:57 CST 2023 Jakub Kicinski <kuba@kernel.org> devlink: always check if the devlink instance is registered
Always check under the instance lock whether the devlink instance is still / already registered.
This is a no-op for the most part, as the unregistration path currently waits for all references. On the init path, however, we may temporarily open up a race with netdev code, if netdevs are registered before the devlink instance. This is temporary, the next change fixes it, and this commit has been split out for the ease of review.
Note that in case of iterating over sub-objects which have their own lock (regions and line cards) we assume an implicit dependency between those objects existing and devlink unregistration.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|
H A D | devl_internal.h | diff ed539ba614a079ea696b92beef1eafec66f831a4 Fri Jan 06 00:33:57 CST 2023 Jakub Kicinski <kuba@kernel.org> devlink: always check if the devlink instance is registered
Always check under the instance lock whether the devlink instance is still / already registered.
This is a no-op for the most part, as the unregistration path currently waits for all references. On the init path, however, we may temporarily open up a race with netdev code, if netdevs are registered before the devlink instance. This is temporary, the next change fixes it, and this commit has been split out for the ease of review.
Note that in case of iterating over sub-objects which have their own lock (regions and line cards) we assume an implicit dependency between those objects existing and devlink unregistration.
Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
|