powerpc/eeh: Introduce global mutex
The patch introduces global mutex for EEH so that the core data structures can be protected by that. Also, 2 inline functions are exported for that: eeh_lock() and eeh_unlock(). Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
这个提交包含在:
@@ -92,6 +92,9 @@ struct eeh_ops *eeh_ops = NULL;
|
||||
int eeh_subsystem_enabled;
|
||||
EXPORT_SYMBOL(eeh_subsystem_enabled);
|
||||
|
||||
/* Global EEH mutex */
|
||||
DEFINE_MUTEX(eeh_mutex);
|
||||
|
||||
/* Lock to avoid races due to multiple reports of an error */
|
||||
static DEFINE_RAW_SPINLOCK(confirm_error_lock);
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户