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 7149258 commit ce48c45Copy full SHA for ce48c45
kernel/cpu.c
@@ -313,6 +313,15 @@ void cpus_write_unlock(void)
313
314
void lockdep_assert_cpus_held(void)
315
{
316
+ /*
317
+ * We can't have hotplug operations before userspace starts running,
318
+ * and some init codepaths will knowingly not take the hotplug lock.
319
+ * This is all valid, so mute lockdep until it makes sense to report
320
+ * unheld locks.
321
+ */
322
+ if (system_state < SYSTEM_RUNNING)
323
+ return;
324
+
325
percpu_rwsem_assert_held(&cpu_hotplug_lock);
326
}
327
0 commit comments