]> 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)
commit2f398eee2815061e0023883d951d372ce0cea45f
treeafaea3259d7ee96add7dbb3ee90f9ac557b75ac8
parent899fb7fcb794b9198c6502b1ad20004c1bd0f5cd
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