diff options
author | Kirill Korotaev <dev@sw.ru> | 2005-11-14 00:07:30 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-14 02:14:16 (GMT) |
commit | 4557398f8cbaf9f254cff747534b4724c7f75c4f (patch) | |
tree | 052b59279b1312a4fde83a76feb4a7a0c5cf7df1 /Documentation/sh | |
parent | c5b609797b8e212dbfaf23944da8bf8c53233d5c (diff) | |
download | linux-4557398f8cbaf9f254cff747534b4724c7f75c4f.tar.xz |
[PATCH] stop_machine() vs. synchronous IPI send deadlock
This fixes deadlock of stop_machine() vs. synchronous IPI send. The
problem is that stop_machine() disables interrupts before disabling
preemption on other CPUs. So if another CPU is preempted and then calls
something like flush_tlb_all() it will deadlock with CPU doing
stop_machine() and which can't process IPI due to disabled IRQs.
I changed stop_machine() to do the same things exactly as it does on other
CPUs, i.e. it should disable preemption first on _all_ CPUs including
itself and only after that disable IRQs.
Signed-off-by: Kirill Korotaev <dev@sw.ru>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: "Andrey Savochkin" <saw@sawoct.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation/sh')
0 files changed, 0 insertions, 0 deletions