Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
user avatar
Dmytro Linkin authored
Port functions, like SFs, can be deleted by the user when its leaf rate
object has parent node. In such case node refcnt won't be decreased
which blocks the node from deletion later.
Do simple refcnt decrease, since driver in cleanup stage. This:
1) assumes that driver took proper internal parent unset action;
2) allows to avoid nested callbacks call and deadlock.

Fixes: d7555984

 ("devlink: Allow setting parent node of rate objects")
Signed-off-by: default avatarDmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: default avatarJiri Pirko <jiri@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
1321ed5e
Forked from BeagleBoard.org / Linux
Source project has a limited visibility.
Name Last commit Last update