]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf981c814e0c6b6f14d47bfd59268f9367cd7073b
treeafaea3259d7ee96add7dbb3ee90f9ac557b75ac8
parentf737249f89422f9acb4d3b8ae264450266862501
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