Commit 5ebe774
smp/hotplug: Differentiate the AP completion between up and down
With lockdep-crossrelease we get deadlock reports that span cpu-up and
cpu-down chains. Such deadlocks cannot possibly happen because cpu-up
and cpu-down are globally serialized.
takedown_cpu()
irq_lock_sparse()
wait_for_completion(&st->done)
cpuhp_thread_fun
cpuhp_up_callback
cpuhp_invoke_callback
irq_affinity_online_cpu
irq_local_spare()
irq_unlock_sparse()
complete(&st->done)
Now that we have consistent AP state, we can trivially separate the
AP completion between up and down using st->bringup.
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: max.byungchul.park@gmail.com
Cc: bigeasy@linutronix.de
Cc: efault@gmx.de
Cc: rostedt@goodmis.org
Link: https://lkml.kernel.org/r/20170920170546.872472799@infradead.org1 parent 5f4b55e commit 5ebe774
1 file changed
Lines changed: 32 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
64 | | - | |
| 65 | + | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
130 | 132 | | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | 135 | | |
142 | 136 | | |
143 | 137 | | |
| |||
232 | 226 | | |
233 | 227 | | |
234 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
235 | 249 | | |
236 | 250 | | |
237 | 251 | | |
| |||
368 | 382 | | |
369 | 383 | | |
370 | 384 | | |
371 | | - | |
| 385 | + | |
372 | 386 | | |
373 | 387 | | |
374 | 388 | | |
| |||
391 | 405 | | |
392 | 406 | | |
393 | 407 | | |
394 | | - | |
| 408 | + | |
395 | 409 | | |
396 | 410 | | |
397 | 411 | | |
| |||
464 | 478 | | |
465 | 479 | | |
466 | 480 | | |
467 | | - | |
| 481 | + | |
| 482 | + | |
468 | 483 | | |
469 | 484 | | |
470 | 485 | | |
| |||
557 | 572 | | |
558 | 573 | | |
559 | 574 | | |
560 | | - | |
| 575 | + | |
561 | 576 | | |
562 | 577 | | |
563 | 578 | | |
| |||
753 | 768 | | |
754 | 769 | | |
755 | 770 | | |
756 | | - | |
| 771 | + | |
757 | 772 | | |
758 | 773 | | |
759 | 774 | | |
| |||
772 | 787 | | |
773 | 788 | | |
774 | 789 | | |
775 | | - | |
| 790 | + | |
776 | 791 | | |
777 | 792 | | |
778 | 793 | | |
| |||
939 | 954 | | |
940 | 955 | | |
941 | 956 | | |
942 | | - | |
| 957 | + | |
943 | 958 | | |
944 | 959 | | |
945 | 960 | | |
| |||
0 commit comments