]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/eeh: Global mutex to protect PE tree
authorGavin Shan <shangw@linux.vnet.ibm.com>
Tue, 11 Sep 2012 19:16:18 +0000 (19:16 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 18 Sep 2012 05:32:33 +0000 (15:32 +1000)
commitefa8ecb1b5640c5b2dbe244a9fb2ae2ae352e9fc
treeeb75479f80d1f24014f8b6f624e35f9e89d59067
parent1cb197e53ac4a2dc5ca39f313cbc487a1e0b9610
powerpc/eeh: Global mutex to protect PE tree

We have missed lots of situations where the PE hierarchy tree need
protection through the EEH global mutex. The patch fixes that for
those public APIs implemented in eeh_pe.c. The only exception is
eeh_pe_restore_bars() because it calls eeh_pe_dev_traverse(), which
has been protected by the mutex.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/eeh_pe.c