OSDN Git Service

powerpc/pseries: Make the acquire/release of the drc for memory a seperate step
authorJohn Allen <jallen@linux.vnet.ibm.com>
Fri, 6 Jan 2017 19:25:53 +0000 (13:25 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Feb 2017 05:57:38 +0000 (16:57 +1100)
commitc21f515c743687c6c2b3d38227e6ad8e6b733409
treeafaea3259d7ee96add7dbb3ee90f9ac557b75ac8
parente71ff89c712cb387914abff373ac830d6298b012
powerpc/pseries: Make the acquire/release of the drc for memory a seperate step

When adding and removing LMBs we should make the acquire/release of
the DRC a separate step to allow for a few improvements. First
this will ensure that LMBs removed during a remove by count operation
are all available if a error occurs and we need to add them back. By
first removeing all the LMBs from the kernel before releasing their
DRCs the LMBs are available to add back should an error occur.

Also, this will allow for faster re-add operations of memory for
PRRN event handling since we can skip the unneeded step of having
to release the DRC and the acquire it back.

Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: John Allen <jallen@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/hotplug-memory.c