lkml.org 
[lkml]   [2014]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 4/6] x86-mce: Add spinlocks to prevent duplicated MCP and CMCI reports.
From
On Wed, Jul 9, 2014 at 1:47 PM, Luck, Tony <tony.luck@intel.com> wrote:
> if (!(flags & MCP_UC) &&
> - (m.status & (mca_cfg.ser ? MCI_STATUS_S : MCI_STATUS_UC)))
> + (m.status & (mca_cfg.ser ? MCI_STATUS_S : MCI_STATUS_UC))) {
> + spin_unlock_irqrestore(&mce_banks[i].poll_spinlock,
> + irq_flags);
> continue;
> + }
>
> Perhaps move this test for UC up to before you grab the lock?

Will do, thanks.

Havard


\
 
 \ /
  Last update: 2014-07-10 00:41    [W:0.263 / U:2.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site