[FIX PATCH v1] powerpc/pseries: Fix reference count leak during CPU unplug

Sachin Sant sachinp at linux.vnet.ibm.com
Thu Mar 9 17:18:39 AEDT 2017


> Fix this by ensuring that of_node_put() is called only from the
> error path in dlpar_cpu_remove_by_index(). In the normal path,
> of_node_put() happens as part of dlpar_detach_node().
> 
> Signed-off-by: Bharata B Rao <bharata at linux.vnet.ibm.com>
> Cc: Nathan Fontenot <nfont at linux.vnet.ibm.com>
> ---
> Changes in v1:
> - Fixed the refcount problem in the userspace driven unplug path
>  in addition to in-kernel unplug path. (Sachin Sant)
> 
> v0: https://patchwork.ozlabs.org/patch/736547/
> 

Thanks Bharata.
Tested cpu hotplug/unplug with this fix on a PowrVM LPAR. 

Tested-by : Sachin Sant <sachinp at linux.vnet.ibm.com>

Thanks
-Sachin



More information about the Linuxppc-dev mailing list