<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [BAT SKL] lockdep splat"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93294#c7">Comment # 7</a>
              on <a class="bz_bug_link 
          bz_status_ASSIGNED "
   title="ASSIGNED - [BAT SKL] lockdep splat"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=93294">bug 93294</a>
              from <span class="vcard"><a class="email" href="mailto:chris@chris-wilson.co.uk" title="Chris Wilson <chris@chris-wilson.co.uk>"> <span class="fn">Chris Wilson</span></a>
</span></b>
        <pre>Reverse the polarity of the tachyon streams:

diff --git a/kernel/cpu.c b/kernel/cpu.c
index 5b9d39633ce9..58a0ca0789a0 100644
--- a/kernel/cpu.c
+++ b/kernel/cpu.c
@@ -148,7 +148,6 @@ void cpu_hotplug_begin(void)
        DEFINE_WAIT(wait);

        cpu_hotplug.active_writer = current;
-       cpuhp_lock_acquire();

        for (;;) {
                mutex_lock(&cpu_hotplug.lock);
@@ -159,13 +158,14 @@ void cpu_hotplug_begin(void)
                schedule();
        }
        finish_wait(&cpu_hotplug.wq, &wait);
+       cpuhp_lock_acquire();
 }

 void cpu_hotplug_done(void)
 {
+       cpuhp_lock_release();
        cpu_hotplug.active_writer = NULL;
        mutex_unlock(&cpu_hotplug.lock);
-       cpuhp_lock_release();
 }

 /*</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>