]> git.baikalelectronics.ru Git - kernel.git/commit
EDAC, i7core: Remove double buffering of error records
authorTony Luck <tony.luck@intel.com>
Thu, 28 Apr 2016 14:52:11 +0000 (07:52 -0700)
committerBorislav Petkov <bp@suse.de>
Fri, 29 Apr 2016 14:41:24 +0000 (16:41 +0200)
commite3885bf223cd11cf0ab4df065725f72faaa16d5e
treea2a9bdd3aa0f4b71e53d1d43aa9a5d34948bba31
parent90c68fbed6a8a89e23c498354559a51d4f67af91
EDAC, i7core: Remove double buffering of error records

In the bad old days the functions from x86_mce_decoder_chain could be
called in machine check context. So we used to carefully copy them and
defer processing until later. But in

  7277d1f477f97 ("x86/mce: Avoid potential deadlock due to printk() in MCE context")

we switched the logging code to save the record in a genpool, and call
the functions that registered to be notified later from a work queue.

So drop all the double buffering and do all the work we want to do as
soon as i7core_mce_check_error() is called.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Acked-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/29ab2c370915c6e132fc5d88e7b72cb834bedbfe.1461855008.git.tony.luck@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/i7core_edac.c