linux-stable/net/devlink
Jiri Pirko 58086721b7 devlink: avoid potential loop in devlink_rel_nested_in_notify_work()
In case devlink_rel_nested_in_notify_work() can not take the devlink
lock mutex. Convert the work to delayed work and in case of reschedule
do it jiffie later and avoid potential looping.

Suggested-by: Paolo Abeni <pabeni@redhat.com>
Fixes: c137743bce ("devlink: introduce object and nested devlink relationship infra")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Link: https://lore.kernel.org/r/20240205171114.338679-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-02-06 18:45:16 -08:00
..
Makefile devlink: move devlink_notify_register/unregister() to dev.c 2023-08-28 08:02:24 -07:00
core.c devlink: avoid potential loop in devlink_rel_nested_in_notify_work() 2024-02-06 18:45:16 -08:00
dev.c devlink: introduce a helper for netlink multicast send 2023-12-19 15:31:40 +01:00
devl_internal.h devlink: extend multicast filtering by port index 2023-12-19 15:31:40 +01:00
dpipe.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
health.c devlink: extend multicast filtering by port index 2023-12-19 15:31:40 +01:00
linecard.c devlink: introduce a helper for netlink multicast send 2023-12-19 15:31:40 +01:00
netlink.c devlink: extend multicast filtering by port index 2023-12-19 15:31:40 +01:00
netlink_gen.c devlink: extend multicast filtering by port index 2023-12-19 15:31:40 +01:00
netlink_gen.h devlink: add a command to set notification filter and use it for multicasts 2023-12-19 15:31:40 +01:00
param.c devlink: introduce a helper for netlink multicast send 2023-12-19 15:31:40 +01:00
port.c devlink: Fix referring to hw_addr attribute during state validation 2024-01-30 18:32:41 -08:00
rate.c devlink: introduce a helper for netlink multicast send 2023-12-19 15:31:40 +01:00
region.c devlink: introduce a helper for netlink multicast send 2023-12-19 15:31:40 +01:00
resource.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
sb.c devlink: rename netlink callback to be aligned with the generated ones 2023-10-23 16:12:47 -07:00
trap.c devlink: introduce a helper for netlink multicast send 2023-12-19 15:31:40 +01:00