powerpc/eeh: Introdce flag to protect sysfs
authorGavin Shan <shangw@linux.vnet.ibm.com>
Wed, 24 Jul 2013 02:25:01 +0000 (10:25 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 24 Jul 2013 04:18:49 +0000 (14:18 +1000)
commitab55d2187da27414f78056810713c92f9a4350c2
tree49df4aa27f4e6b946ef1c7e892478502a9d7bee6
parent91150af3adf67463c4ca7d72d4fe1a84da37792c
powerpc/eeh: Introdce flag to protect sysfs

The patch introduces flag EEH_DEV_SYSFS to keep track that the sysfs
entries for the corresponding EEH device (then PCI device) has been
added or removed, in order to avoid race condition.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c
arch/powerpc/kernel/eeh_sysfs.c
arch/powerpc/platforms/powernv/eeh-powernv.c
arch/powerpc/platforms/pseries/eeh_pseries.c