mutex subsystem, -V8
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest11 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | mutex subsystem, add atomic_xchg() to all archesinclude/ include/ include/ +19 more | +29 | 0 replies | |
| 2/11 | mutex subsystem, add asm-generic/mutex-[dec|xchg|null].h implementationsinclude/ include/ include/ | +215 | 0 replies | |
| 3/11 | mutex subsystem, add include/asm-i386/mutex.hinclude/ | +140 | 0 replies | |
| 4/11 | mutex subsystem, add include/asm-x86_64/mutex.hinclude/ | +97 | 3 replies | |
| 5/11 | mutex subsystem, add include/asm-arm/mutex.hinclude/ | +144 | 0 replies | |
| 6/11 | mutex subsystem, add default include/asm-*/mutex.h filesinclude/ include/ include/ +16 more | +171 | 0 replies | |
| 7/11 | mutex subsystem, coreinclude/ kernel/ kernel/ +1 more | +581 | 0 replies | |
| 8/11 | mutex subsystem, documentationDocumentation/ | +126 | 0 replies | |
| 9/11 | mutex subsystem, debugging codeinclude/ include/ kernel/ +4 more | +636 | 0 replies | |
| 10/11 | mutex subsystem, more debugging codearch/ drivers/ include/ +4 more | +37 | 0 replies | |
| 11/11 | mutex subsystem, XFS namespace collision fixesfs/ fs/ fs/ +8 more | +52 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [patch 00/11] mutex subsystem, -V8
this is version -V8 of the generic mutex subsystem. It consists of the following 11 patches:
add-atomic-xchg.patch
mutex-generic-asm-implementations.patch
mutex-asm-mutex.h-i386.patch
mutex-asm-mutex.h-x86_64.patch
mutex-asm-mutex.h-arm.patch
mutex-arch-mutex-h.patch
mutex-core.patch
mutex-docs.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.
i have tested all 5 mutex implementation variants under MUTEX_DEBUG_FULL on x86: native, -dec, -xchg, -null and debug.
Changes since -V7:
11 files changed, 258 insertions(+), 122 deletions(-)
- added a __mutex_fastpath_trylock(count, fn) method for architectures to define a trylock fastpath.
While trylock has no 'slowpath' in the classic sense, but e.g. the ARMv6 fastpath implementation can 'fail' to take the lock speculatively, and has to call back into the generic code in that case, to guarantee that the trylock is actually attempted. The debug and xchg variant also makes use of the generic code, unconditionally.
The ARMv6 fastpath implementation is from Nicolas Pitre.
this change gets rid of the final #ifdefs from the core kernel/mutex.c code, and makes it squeeky clean ;-)
- inline mutex_is_locked() (Nicolas Pitre)
- more cleanups (of assembly code in particular).
Ingo