Commit 8e26246
padata: Remove cpu online check from cpu add and removal
[ Upstream commit 73117ea ]
During the CPU offline process, the dying CPU is cleared from the
cpu_online_mask in takedown_cpu(). After this step, various CPUHP_*_DEAD
callbacks are executed to perform cleanup jobs for the dead CPU, so this
cpu online check in padata_cpu_dead() is unnecessary.
Similarly, when executing padata_cpu_online() during the
CPUHP_AP_ONLINE_DYN phase, the CPU has already been set in the
cpu_online_mask, the action even occurs earlier than the
CPUHP_AP_ONLINE_IDLE stage.
Remove this unnecessary cpu online check in __padata_add_cpu() and
__padata_remove_cpu().
Signed-off-by: Chuyi Zhou <zhouchuyi@bytedance.com>
Acked-by: Daniel Jordan <daniel.m.jordan@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Stable-dep-of: c8c4a29 ("padata: Put CPU offline callback in ONLINE section to allow failure")
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent 3ffcd6c commit 8e26246
1 file changed
Lines changed: 8 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
736 | 736 | | |
737 | 737 | | |
738 | 738 | | |
739 | | - | |
740 | | - | |
741 | | - | |
742 | | - | |
| 739 | + | |
743 | 740 | | |
744 | | - | |
745 | | - | |
746 | | - | |
747 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
748 | 744 | | |
749 | 745 | | |
750 | 746 | | |
751 | 747 | | |
752 | 748 | | |
753 | 749 | | |
754 | | - | |
755 | | - | |
756 | | - | |
757 | | - | |
758 | | - | |
759 | | - | |
760 | | - | |
761 | | - | |
762 | | - | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
763 | 753 | | |
764 | | - | |
| 754 | + | |
765 | 755 | | |
766 | 756 | | |
767 | 757 | | |
| |||
0 commit comments