mirror of
https://github.com/torvalds/linux.git
synced 2024-11-28 15:11:31 +00:00
aba0e909dc
Devlink health dump get callback should take devlink lock as any other
devlink callback. Otherwise, since devlink_mutex was removed, this
callback is not protected from a race of the reporter being destroyed
while handling the callback.
Add devlink lock to the callback and to any call for
devlink_health_do_dump(). This should be safe as non of the drivers dump
callback implementation takes devlink lock.
As devlink lock is added to any callback of dump, the reporter dump_lock
is now redundant and can be removed.
Fixes:
|
||
---|---|---|
.. | ||
core.c | ||
dev.c | ||
devl_internal.h | ||
dpipe.c | ||
health.c | ||
linecard.c | ||
Makefile | ||
netlink_gen.c | ||
netlink_gen.h | ||
netlink.c | ||
param.c | ||
port.c | ||
rate.c | ||
region.c | ||
resource.c | ||
sb.c | ||
trap.c |