cpuhotplug: fix cleanup issue in hotplug fail path
While we hotplug a CPU if any one of the callback (which is to be called after notify_online) fails, while doing rollback notify_dead() has not being called, as for step `notify:prepare` the flag `skipone_err` set to true and due to which sysfs nodes don't get released. If we call notify_dead(), it will send CPU_DEAD notification to the drivers and they could do their cleanup. So, there is no need to send CPU_UP_CANCEL notification on hotplug failure. This eventually reverts commit 5ec3ec14 ("kernel: cpu: send CPU_UP_CANCELLED notifcation"). Change-Id: I4ba42becec25a9d92acccae28a9fc28b9d9dedc1 Signed-off-by:Mukesh Ojha <mojha@codeaurora.org>
Loading
Please register or sign in to comment