Skip to content

RFC Move locking primitives into kernel/locking/

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest8 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8locking: Move mutex into kernel/locking/kernel/Makefile kernel/locking/Makefile kernel/locking/mutex-debug.c +7 more+1184 -11775 replies
2/8locking: Move lockdep into kernel/locking/kernel/Makefile kernel/lockdep.c kernel/lockdep_internals.h +7 more+5125 -51250 replies
3/8locking: Move spinlock into kernel/locking/kernel/Makefile kernel/locking/Makefile kernel/locking/spinlock.c +4 more+705 -7050 replies
4/8locking: Move semaphore into kernel/locking/kernel/Makefile kernel/locking/Makefile kernel/locking/semaphore.c +1 more+265 -2650 replies
5/8locking: Move rtmutex into kernel/locking/kernel/Makefile kernel/futex.c kernel/locking/Makefile +12 more+1856 -18560 replies
6/8locking: Move rwsem into kernel/locking/kernel/Makefile kernel/locking/Makefile kernel/locking/rwsem-spinlock.c +6 more+750 -7500 replies
7/8locking: Move lglocks into kernel/locking/kernel/Makefile kernel/lglock.c kernel/locking/Makefile +1 more+91 -910 replies
8/8locking: Move percpu-rwsem into kernel/locking/kernel/locking/Makefile kernel/locking/percpu-rwsem.c lib/Makefile +1 more+167 -1670 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC 0/8] Move locking primitives into kernel/locking/

Hi all,

During Kernel Summit Dave mentioned that there wasn't a clear maintainer for locking bits.

To remedy this Ingo suggested gathering all the various locking primitives and lockdep into a single place: kernel/locking/.

I would further like to propose a MAINTAINERS entry like:

LOCKING

M:      Ingo Molnar <[email protected]>
M:      Peter Zijlstra <[email protected]>
M:	Oleg Nesterov <[email protected]>
M:	"Paul E. McKenney" <[email protected]>
M:	Linus Torvalds <[email protected]>
T:      git git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git locking/core
S:      Maintained
F:      kernel/locking/

Because for most 'fun' locking discussions we usually end up with at least those people anyway :-)

Comments?

---
 kernel/lglock.c                    |   89 
 kernel/lockdep.c                   | 4257 -----------------------------------
 kernel/lockdep_internals.h         |  170 -
 kernel/lockdep_proc.c              |  683 -----
 kernel/lockdep_states.h            |    9 
 kernel/mutex-debug.c               |  110 
 kernel/mutex-debug.h               |   55 
 kernel/mutex.c                     |  960 -------
 kernel/mutex.h                     |   48 
 kernel/rtmutex-debug.c             |  187 -
 kernel/rtmutex-debug.h             |   33 
 kernel/rtmutex-tester.c            |  420 ---
 kernel/rtmutex.c                   | 1060 --------
 kernel/rtmutex.h                   |   26 
 kernel/rtmutex_common.h            |  126 -
 kernel/rwsem.c                     |  157 -
 kernel/semaphore.c                 |  263 --
 kernel/spinlock.c                  |  399 ---
 lib/percpu-rwsem.c                 |  165 -
 lib/rwsem-spinlock.c               |  296 --
 lib/rwsem.c                        |  293 --
 lib/spinlock_debug.c               |  302 --
 kernel/locking/Makefile            |   25 
 kernel/locking/lglock.c            |   89 
 kernel/locking/lockdep.c           | 4257 +++++++++++++++++++++++++++++++++++
 kernel/locking/lockdep_internals.h |  170 +
 kernel/locking/lockdep_proc.c      |  683 +++++
 kernel/locking/lockdep_states.h    |    9 
 kernel/locking/mutex-debug.c       |  110 
 kernel/locking/mutex-debug.h       |   55 
 kernel/locking/mutex.c             |  960 +++++++
 kernel/locking/mutex.h             |   48 
 kernel/locking/percpu-rwsem.c      |  165 +
 kernel/locking/rtmutex-debug.c     |  187 +
 kernel/locking/rtmutex-debug.h     |   33 
 kernel/locking/rtmutex-tester.c    |  420 +++
 kernel/locking/rtmutex.c           | 1060 ++++++++
 kernel/locking/rtmutex.h           |   26 
 kernel/locking/rtmutex_common.h    |  126 +
 kernel/locking/rwsem-spinlock.c    |  296 ++
 kernel/locking/rwsem-xadd.c        |  293 ++
 kernel/locking/rwsem.c             |  157 +
 kernel/locking/semaphore.c         |  263 ++
 kernel/locking/spinlock.c          |  399 +++
 kernel/locking/spinlock_debug.c    |  302 ++
 kernel/Makefile                    |   22 
 kernel/futex.c                     |    2 
 lib/Makefile                       |    4 
 48 files changed, 10138 insertions(+), 10131 deletions(-)