EDAC, sb_edac: Remove double buffering of error records
authorTony Luck <tony.luck@intel.com>
Fri, 15 Apr 2016 21:50:32 +0000 (14:50 -0700)
committerBorislav Petkov <bp@suse.de>
Sat, 23 Apr 2016 12:02:02 +0000 (14:02 +0200)
commitad08c4e97485694fee5ebb181983514facedbb19
tree4c4d834458440c9371c5c01bbc342299aebb7a2b
parentab67b6c22d8506b060a66ed0ce1a3e14e3b075e4
EDAC, sb_edac: 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 sbridge_mce_check_error() is called.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Cc: Aristeu Rozanski <arozansk@redhat.com>
Cc: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Cc: patrickg@supermicro.com
Link: http://lkml.kernel.org/r/100025611cd780d9bca72792b2b2146760da53e0.1460756761.git.tony.luck@intel.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/sb_edac.c