]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pseries: Release DRC when configure_connector fails
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Mon, 7 Sep 2015 10:22:40 +0000 (15:52 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Sep 2015 04:07:58 +0000 (14:07 +1000)
commit34696ef032c8eb63aa7dd0f20743dae5c69a371a
treebc2b36fc66ccdce6240fa6ae0fcf53b7aa40b44b
parent750998e16849f31f125ade42ee5c0153d617987b
powerpc/pseries: Release DRC when configure_connector fails

Commit 7226ec78a9f4 ("powerpc/pseries: Correct cpu affinity for
dlpar added cpus") moved dlpar_acquire_drc() call to before
dlpar_configure_connector() call in dlpar_cpu_probe(), but missed
to release the DRC if dlpar_configure_connector() failed.
During CPU hotplug, if configure-connector fails for any reason,
then this will result in subsequent CPU hotplug attempts to fail.

Release the acquired DRC if dlpar_configure_connector() call fails
so that the DRC is left in right isolation and allocation state
for the subsequent hotplug operation to succeed.

Fixes: 7226ec78a9f4 ("powerpc/pseries: Correct cpu affinity for dlpar added cpus")
Cc: stable@vger.kernel.org # 4.1+
Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Reviewed-by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/dlpar.c