Skip to content

mutex subsystem, -V5

Ingo Molnar lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10mutex subsystem, add atomic_xchg() to all archesinclude/asm-alpha/atomic.h include/asm-arm/atomic.h include/asm-arm26/atomic.h +19 more+29 -00 replies
2/10mutex subsystem, add atomic_*_call_if_*() to i386include/asm-i386/atomic.h+57 -00 replies
3/10mutex subsystem, add atomic_*_call_if_*() to x86_64include/asm-x86_64/atomic.h+58 -00 replies
4/10mutex subsystem, add atomic_*_call_if_*() defaults to the remaining archesinclude/asm-alpha/atomic.h include/asm-arm/atomic.h include/asm-arm26/atomic.h +18 more+269 -00 replies
5/10mutex subsystem, coreinclude/linux/mutex.h kernel/Makefile kernel/mutex.c+629 -10 replies
6/10mutex subsystem, documentationDocumentation/mutex-design.txt+126 -00 replies
7/10mutex subsystem, switch ARM to use the xchg based implementationarch/arm/Kconfig include/asm-arm/atomic.h+5 -60 replies
8/10mutex subsystem, debugging codeinclude/linux/mutex-debug.h include/linux/sched.h kernel/fork.c +2 more+565 -00 replies
9/10mutex subsystem, more debugging codearch/i386/mm/pageattr.c drivers/char/sysrq.c include/linux/mm.h +4 more+37 -00 replies
10/10mutex subsystem, XFS namespace collision fixesfs/xfs/linux-2.6/mutex.h fs/xfs/quota/xfs_dquot.c fs/xfs/quota/xfs_dquot.h +8 more+52 -520 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 00/10] mutex subsystem, -V5

this is verion -V5 of the generic mutex subsystem. It consists of the following patches:

add-atomic-xchg.patch
add-atomic-call-func-i386.patch
add-atomic-call-func-x86_64.patch
add-atomic-call-wrappers-rest.patch
mutex-core.patch
mutex-docs.patch
mutex-switch-arm-to-xchg.patch
mutex-debug.patch
mutex-debug-more.patch
xfs-mutex-namespace-collision-fix.patch

the patches are against Linus' latest GIT tree, and they should work fine on every Linux architecture.

Changes since -V4:

 26 files changed, 255 insertions(+), 104 deletions(-)

- added Documentation/mutex-design.txt, suggested by Andrew Morton.

- removed __ARCH_WANT_XCHG_BASED_ATOMICS and implemented CONFIG_MUTEX_XCHG_ALGORITHM instead, based on comments from Christoph Hellwig.

- updated ARM to use CONFIG_MUTEX_XCHG_ALGORITHM.

- added mutex_destroy(), suggested by Christoph Hellwig.

- added queue-secondary-waiters-as-LIFO, suggested by Nick Piggin.

- mutex.h: include file ordering fix (Christoph Hellwig).

- mutex.h: comment fix (Christoph Hellwig).

- mutex.c: smaller cleanups

Ingo