Re: [PATCH] powerpc/pseries: safely roll back failed DLPAR cpu add

2019-10-16 Thread Nathan Lynch
Nathan Lynch writes: > Move dlpar_offline_cpu() before dlpar_online_cpu() so the latter can > use the former to re-offline any threads it has onlined when it > encounters an error. Since moving this code yields a few valid checkpatch warnings, I've submitted a v2 which cleans these up first. htt

[PATCH] powerpc/pseries: safely roll back failed DLPAR cpu add

2019-09-19 Thread Nathan Lynch
dlpar_online_cpu() attempts to online all threads of a core that has been added to an LPAR. If onlining a non-primary thread fails (e.g. due to an allocation failure), the core is left with at least one thread online. dlpar_cpu_add() attempts to roll back the whole operation, releasing the core bac