Skip to content

: MUTEX: Introduce mutex implementation

David Howells linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest12 patches 24 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/12: MUTEX: Implement mutexesinclude/linux/mutex-cmpxchg.h include/linux/mutex-default.h include/linux/mutex-xchg.h +2 more+461 -024 replies
2/12: MUTEX: Provide SWAP-based mutex for FRVarch/frv/Kconfig arch/frv/kernel/irq.c include/asm-frv/system.h+24 -10 replies
3/12: MUTEX: Rename DECLARE_MUTEX for arch/ dirarch/arm/common/rtctime.c arch/arm/kernel/ecard.c arch/arm/kernel/irq.c +30 more+37 -330 replies
4/12: MUTEX: Rename DECLARE_MUTEX for drivers/ dir, A thru Mdrivers/acpi/pci_link.c drivers/acpi/processor_perflib.c drivers/acpi/scan.c +77 more+87 -870 replies
5/12: MUTEX: Rename DECLARE_MUTEX for drivers/ dir, N thru Zdrivers/net/irda/irtty-sir.c drivers/net/irda/sir_dongle.c drivers/net/ppp_generic.c +50 more+56 -560 replies
6/12: MUTEX: Rename DECLARE_MUTEX for fs/ dirfs/char_dev.c fs/cramfs/inode.c fs/dcookies.c +11 more+16 -160 replies
7/12: MUTEX: Rename DECLARE_MUTEX for include/asm-*/ dirsinclude/asm-alpha/semaphore.h include/asm-arm/semaphore.h include/asm-arm26/semaphore.h +19 more+45 -440 replies
8/12: MUTEX: Rename DECLARE_MUTEX for kernel/ dirkernel/Makefile kernel/audit.c kernel/cpu.c +12 more+535 -140 replies
9/12: MUTEX: Rename DECLARE_MUTEX for net/ dirnet/atm/ioctl.c net/atm/resources.c net/bluetooth/rfcomm/core.c +26 more+32 -320 replies
10/12: MUTEX: Rename DECLARE_MUTEX for sound/ dirsound/arm/pxa2xx-ac97.c sound/core/hwdep.c sound/core/info.c +14 more+17 -170 replies
11/12: MUTEX: Rename DECLARE_MUTEX for miscellaneous directoriesDocumentation/DocBook/kernel-locking.tmpl Documentation/kref.txt block/genhd.c +6 more+10 -100 replies
12/12: MUTEX: Provide synchronisation primitive testing moduleMakefile tests/Makefile tests/synchro-test.c+494 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/12]: MUTEX: Introduce mutex implementation

This set of patches implements mutexes as an alternative to semaphores where such more restricted behaviour is appropriate.

There are several changes that might be appropriate to these patches:

(1) Name DECLARE_MUTEX as DEFINE_MUTEX in linux/mutex-*.h

(2) Make mutex_trylock()'s return value consistent with semaphores rather than everything else.

(3) Drop the testing module (patch 12/12). I'm not sure I've got the plumbing correct in the master makefile.

Patches to come after Christmas will include sem -> completion conversions and sem -> mutex conversions.

Merry Christmas!

David