]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Add sysctl to allow panic on IOCK NMI error
authorKurt Garloff <garloff@suse.de>
Wed, 24 Jun 2009 21:32:11 +0000 (14:32 -0700)
committerIngo Molnar <mingo@elte.hu>
Thu, 25 Jun 2009 20:06:11 +0000 (22:06 +0200)
commite8fc2805202a11dd4f39c581b088656164d23b84
tree5d2a853e538b8478648a57efe94ef049e76e13e6
parent7ac2ac1607061d9d7289bff5b6f54839a3c1de3b
x86: Add sysctl to allow panic on IOCK NMI error

This patch introduces a new sysctl:

    /proc/sys/kernel/panic_on_io_nmi

which defaults to 0 (off).

When enabled, the kernel panics when the kernel receives an NMI
caused by an IO error.

The IO error triggered NMI indicates a serious system
condition, which could result in IO data corruption. Rather
than contiuing, panicing and dumping might be a better choice,
so one can figure out what's causing the IO error.

This could be especially important to companies running IO
intensive applications where corruption must be avoided, e.g. a
bank's databases.

[ SuSE has been shipping it for a while, it was done at the
  request of a large database vendor, for their users. ]

Signed-off-by: Kurt Garloff <garloff@suse.de>
Signed-off-by: Roberto Angelino <robertangelino@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
LKML-Reference: <20090624213211.GA11291@kroah.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/dumpstack.c
arch/x86/kernel/traps.c
include/linux/kernel.h
kernel/sysctl.c