Skip to content

Simplify setting thread flags to a particular value

Dave Martin linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5thread_info: Port core code to use update_thread_flag() helpersinclude/trace/syscall.h kernel/ptrace.c+7 -122 replies
2/5ARM: Use update_thread_flag()arch/arm/kernel/elf.c+3 -60 replies
3/5MIPS: Use update{,_tsk}_thread_flag()arch/mips/kernel/elf.c arch/mips/kernel/process.c arch/mips/kernel/ptrace.c +1 more+11 -290 replies
4/5powerpc: Use update_thread_flag()arch/powerpc/include/asm/elf.h+2 -81 reply
5/5sparc: Use update_thread_flag()arch/sparc/include/asm/elf_64.h+1 -41 reply

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchDavid S. MillerSteven Rostedt (VMware)Oleg NesterovMichael Ellerman
1/5A-b A-b
2/5
3/5
4/5A-b
5/5A-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 4 reviewers.

Read the v1 thread

Cover letter [PATCH REPOST 0/5] Simplify setting thread flags to a particular value

There are a number of bits of code sprinkled around the kernel to set a thread flag if a certain condition is true, and clear it otherwise.

This series ports relevant bits of code to use the new update_thread_flag() helpers implemented in [2].

Note: This is a repost of a previous RFC [1]. Part of patch 1, and all of patch 4 of that series have been split out and reviewed separately ([2], [3] respectively). I currently expect them to merge via Marc's KVM tree.

The remainder of the patches from [1] are reposted here.

Patch 1 ports some core code that to use the update_thread_flag() helpers.

The remaining patches port relevant bits of arch code.

Build-tested on the affected architectures; some context switch stress testing done on arm64, which exercises a few call sites for the new helpers.

Comments welcome.

Cheers
---Dave

[1] [RFC PATCH 0/6] Simplify setting thread flags to a particular value
https://lkml.org/lkml/2018/4/19/225

[2] [PATCH v7 01/16] thread_info: Add update_thread_flag() helpers
http://lists.infradead.org/pipermail/linux-arm-kernel/2018-May/576596.html

[3] [PATCH v7 02/16] arm64: Use update{,_tsk}_thread_flag()
http://lists.infradead.org/pipermail/linux-arm-kernel/2018-May/576597.html

Dave Martin (5):
thread_info: Port core code to use update_thread_flag() helpers
ARM: Use update_thread_flag()
MIPS: Use update{,_tsk}_thread_flag()
powerpc: Use update_thread_flag()
sparc: Use update_thread_flag()

 arch/arm/kernel/elf.c           |  9 +++------
 arch/mips/kernel/elf.c          | 10 ++--------
 arch/mips/kernel/process.c      | 15 ++++++---------
 arch/mips/kernel/ptrace.c       |  5 +----
 arch/mips/kernel/syscall.c      | 10 ++--------
 arch/powerpc/include/asm/elf.h  | 10 ++--------
 arch/sparc/include/asm/elf_64.h |  5 +----
 include/trace/syscall.h         |  6 ++----
 kernel/ptrace.c                 | 13 +++++--------
 9 files changed, 24 insertions(+), 59 deletions(-)
Signature · 1 line
2.1.4