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)
commit5359534505c74841dbb2c6baf41db1a395acd34d
treea2a9bdd3aa0f4b71e53d1d43aa9a5d34948bba31
parentde0336b30de1b3e3ad6b76b5ccf0b4920d328313
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

  f29a7aff4bd60 ("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