arch: patch_text: Fixup last cpu should be master
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v4 Latest4 patches 1 replyIn review
- v3 posting 4/41 patch 0 repliesSuperseded
- v3 posting 3/41 patch 2 repliesSuperseded
Earlier versions · 4
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 posting 2/4 | 1 patch | 7 replies | Superseded | |
| v3 posting 1/4 | 1 patch | 0 replies | Superseded | |
| v2 | 1 patch | 5 replies | Superseded | |
| v1 RFC | 1 patch | 4 replies | Superseded |
Changes in v4 from the cover letter
- Add "Fixes:" for stable fixup
- Add cover letter for the patch series
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | arm64: patch_text: Fixup last cpu should be masterarch/ | +2 | 0 replies | |
| 2/4 | riscv: patch_text: Fixup last cpu should be masterarch/ | +1 | 0 replies | |
| 3/4 | xtensa: patch_text: Fixup last cpu should be masterarch/ | +1 | 0 replies | |
| 4/4 | csky: patch_text: Fixup last cpu should be masterarch/ | +1 | 0 replies |
Reviews trailers per patch
All 4 patches have a Reviewed-by or Acked-by.
| Patch | Catalin Marinas | Masami Hiramatsu | Max Filippov |
|---|---|---|---|
| 1/4 | R-b | R-b | |
| 2/4 | R-b | ||
| 3/4 | R-b | R-b | |
| 4/4 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [PATCH V4 0/4] arch: patch_text: Fixup last cpu should be master
From: Guo Ren <[email protected]>
These patch_text implementations are using stop_machine_cpuslocked infrastructure with atomic cpu_count. The original idea: When the master CPU patch_text, the others should wait for it. But current implementation is using the first CPU as master, which couldn't guarantee the remaining CPUs are waiting. This patch changes the last CPU as the master to solve the potential risk.
Changes in v4:
- Add "Fixes:" for stable fixup
- Add cover letter for the patch series
Changes in v3:
- Separate the patch for different arch.
Changes in v2:
- Fixup num_online_cpus() - 1 is not last cpu
Guo Ren (4):
arm64: patch_text: Fixup last cpu should be master
riscv: patch_text: Fixup last cpu should be master
xtensa: patch_text: Fixup last cpu should be master
csky: patch_text: Fixup last cpu should be master
arch/arm64/kernel/patching.c | 4 ++-- arch/csky/kernel/probes/kprobes.c | 2 +- arch/riscv/kernel/patch.c | 2 +- arch/xtensa/kernel/jump_label.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-)
Signature · 1 line
2.25.1