We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af42269 commit 1361917Copy full SHA for 1361917
drivers/interconnect/core.c
@@ -1041,13 +1041,21 @@ void icc_sync_state(struct device *dev)
1041
}
1042
1043
1044
+ mutex_unlock(&icc_bw_lock);
1045
mutex_unlock(&icc_lock);
1046
1047
EXPORT_SYMBOL_GPL(icc_sync_state);
1048
1049
static int __init icc_init(void)
1050
{
- struct device_node *root = of_find_node_by_path("/");
1051
+ struct device_node *root;
1052
+
1053
+ /* Teach lockdep about lock ordering wrt. shrinker: */
1054
+ fs_reclaim_acquire(GFP_KERNEL);
1055
+ might_lock(&icc_bw_lock);
1056
+ fs_reclaim_release(GFP_KERNEL);
1057
1058
+ root = of_find_node_by_path("/");
1059
1060
providers_count = of_count_icc_providers(root);
1061
of_node_put(root);
0 commit comments