]> xenbits.xensource.com Git - people/aperard/linux.git/commitdiff
Revert "interconnect: Teach lockdep about icc_bw_lock order"
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Mar 2024 13:12:15 +0000 (14:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Mar 2024 14:45:19 +0000 (14:45 +0000)
This reverts commit 0db211ec0f1d32b93486e8f6565249ad4d1bece5 which is
commit 13619170303878e1dae86d9a58b039475c957fcf upstream.

It is reported to cause boot crashes in Android systems, so revert it
from the stable trees for now.

Cc: Rob Clark <robdclark@chromium.org>
Cc: Georgi Djakov <djakov@kernel.org>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/interconnect/core.c

index 87f380e0e982e43b28d642b378c1ac46e58a1b2a..4526ff2e1bd5fdbb4cd9235e92767d7905c079ae 100644 (file)
@@ -1146,21 +1146,13 @@ void icc_sync_state(struct device *dev)
                        }
                }
        }
-       mutex_unlock(&icc_bw_lock);
        mutex_unlock(&icc_lock);
 }
 EXPORT_SYMBOL_GPL(icc_sync_state);
 
 static int __init icc_init(void)
 {
-       struct device_node *root;
-
-       /* Teach lockdep about lock ordering wrt. shrinker: */
-       fs_reclaim_acquire(GFP_KERNEL);
-       might_lock(&icc_bw_lock);
-       fs_reclaim_release(GFP_KERNEL);
-
-       root = of_find_node_by_path("/");
+       struct device_node *root = of_find_node_by_path("/");
 
        providers_count = of_count_icc_providers(root);
        of_node_put(root);