Messages in this thread | | | From | "Luck, Tony" <> | Subject | RE: [PATCH 4/6] x86-mce: Add spinlocks to prevent duplicated MCP and CMCI reports. | Date | Wed, 9 Jul 2014 20:47:23 +0000 |
| |
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?
-Tony
| |