kernel-ark/arch/x86_64/kernel
Joshua Wise 4f84e4be53 x86_64: fix misplaced `continue' in mce.c
Background:
  When a userspace application wants to know about machine check events, it
  opens /dev/mcelog and does a read(). Usually, we found that this interface
  works well, but in some cases, when the system was taking large numbers of
  machine check exceptions, the read() would hang. The system would output a
  soft-lockup warning, and the daemon reading from /dev/mcelog would suck up
  as much of a single CPU as it could spinning in system space.

Description:
  This patch fixes this bug. In particular, there was a "continue" inside a
  timeout loop that presumably was intended to break out of the outer loop,
  but instead caused the inner loop to continue. This patch also makes the
  condition for the break-out a little more evident by changing a
  !time_before to a time_after_eq.

Result:
  The read() no longer hangs in this test case.

Testing:
  On my system, I could replicate the bug with the following command:
    # for i in `seq 15000`; do ./inject_sbe.sh; done
  where inject_sbe.sh contains commands to inject a single-bit error into the
  next memory write transaction.

Patch:
  This patch is against git f1518a088b.

Signed-off-by: Joshua Wise <jwise@google.com>
Signed-off-by: Tim Hockin <thockin@google.com>
Cc: Andi Kleen <ak@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-06-24 08:59:12 -07:00
..
acpi
cpufreq
aperture.c
apic.c
asm-offsets.c
audit.c
bugs.c
crash_dump.c
crash.c
e820.c
early_printk.c
early-quirks.c
entry.S x86_64: Ignore compat mode SYSCALL when IA32_EMULATION is not defined 2007-06-22 18:41:19 -07:00
genapic_flat.c
genapic.c
head64.c
head.S
hpet.c
i387.c
i8259.c
init_task.c
io_apic.c
ioport.c
irq.c
k8.c
kprobes.c
ldt.c
machine_kexec.c
Makefile
mce_amd.c
mce_intel.c
mce.c
module.c
mpparse.c
nmi.c
pci-calgary.c
pci-dma.c
pci-gart.c
pci-nommu.c
pci-swiotlb.c
pmtimer.c
process.c
ptrace.c
reboot.c
relocate_kernel.S
setup64.c
setup.c
signal.c
smp.c
smpboot.c
stacktrace.c
suspend_asm.S
suspend.c
sys_x86_64.c
syscall.c
tce.c
time.c Add IRQF_IRQPOLL flag on x86_64 2007-05-08 11:15:22 -07:00
trampoline.S
traps.c
tsc_sync.c
tsc.c
verify_cpu.S
vmlinux.lds.S
vsmp.c
vsyscall.c
x8664_ksyms.c