Skip to content

locking: name space cleanup and -rt spinlock annotation

Thomas Gleixner linux-arch lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/23locking: Reorder functions in spinlock.ckernel/spinlock.c+123 -1230 replies
2/23locking: Split rwlock from spinlock headersinclude/linux/rwlock.h include/linux/rwlock_types.h include/linux/spinlock.h +1 more+197 -1291 reply
3/23locking: Separate rwlock api from spinlock apiinclude/linux/rwlock_api_smp.h include/linux/spinlock_api_smp.h+280 -2490 replies
4/23locking: Convert raw_spinlock to arch_spinlockarch/alpha/include/asm/spinlock.h arch/alpha/include/asm/spinlock_types.h arch/arm/include/asm/spinlock.h +48 more+164 -1642 replies
5/23locking: Rename __RAW_SPIN_LOCK_UNLOCKED to __ARCH_SPIN_LOCK_UNLOCKEDarch/alpha/include/asm/spinlock_types.h arch/arm/include/asm/spinlock_types.h arch/blackfin/include/asm/spinlock_types.h +22 more+33 -330 replies
6/23locking: Convert __raw_spin* functions to arch_spin*arch/alpha/include/asm/spinlock.h arch/arm/include/asm/spinlock.h arch/blackfin/include/asm/spinlock.h +34 more+320 -3200 replies
7/23locking: Convert raw_rwlock to arch_rwlockarch/alpha/include/asm/spinlock.h arch/alpha/include/asm/spinlock_types.h arch/arm/include/asm/spinlock.h +30 more+151 -1510 replies
8/23locking: Convert raw_rwlock functions to arch_rwlockarch/alpha/include/asm/spinlock.h arch/arm/include/asm/spinlock.h arch/blackfin/include/asm/spinlock.h +15 more+216 -2160 replies
9/23locking: Implement new raw_spinlockinclude/linux/spinlock.h include/linux/spinlock_api_smp.h include/linux/spinlock_api_up.h +5 more+298 -1361 reply
10/23locking: Further name space cleanupsinclude/linux/rwlock.h include/linux/rwlock_api_smp.h include/linux/spinlock.h +4 more+68 -680 replies
11/23locking: Cleanup the name space completelyinclude/linux/rwlock.h include/linux/rwlock_api_smp.h include/linux/spinlock.h +3 more+273 -2600 replies
12/23bkl: Fixup core_lock falloutlib/kernel_lock.c+2 -20 replies
13/23plist: Make plist debugging raw_spinlock awareinclude/linux/plist.h kernel/futex.c lib/plist.c+45 -121 reply
14/23sched: Convert rq->lock to raw_spinlockkernel/sched.c kernel/sched_debug.c kernel/sched_idletask.c +1 more+104 -1010 replies
15/23sched: Convert rt_runtime_lock to raw_spinlockkernel/sched.c kernel/sched_rt.c+37 -370 replies
16/23sched: Convert cpupri lock to raw_spinlockkernel/sched_cpupri.c kernel/sched_cpupri.h+6 -60 replies
17/23sched: Convert pi_lock to raw_spinlockinclude/linux/init_task.h include/linux/sched.h kernel/exit.c +5 more+61 -610 replies
18/23rtmutes: Convert rtmutex.lock to raw_spinlockinclude/linux/rtmutex.h kernel/futex.c kernel/rtmutex.c+30 -300 replies
19/23smp: Convert smplocks to raw_spinlockskernel/smp.c+16 -160 replies
20/23genirq: Convert irq_desc.lock to raw_spinlockarch/alpha/kernel/irq.c arch/arm/include/asm/mach/irq.h arch/arm/kernel/irq.c +41 more+242 -2420 replies
21/23hrtimers: Convert to raw_spinlocksinclude/linux/hrtimer.h kernel/hrtimer.c kernel/time/timer_list.c +1 more+36 -360 replies
22/23perf_event: Convert to raw_spinlockinclude/linux/perf_event.h kernel/hw_breakpoint.c kernel/perf_event.c+56 -560 replies
23/23debugobjects: Convert to raw_spinlockslib/debugobjects.c+37 -370 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/23] locking: name space cleanup and -rt spinlock annotation

PREEMPT_RT needs to annotate spinlocks which cannot be converted to sleeping locks.

The best name raw_spinlock is already taken by the low level architecture implementations. We tried to come up with a good name for those locks but none of the naming suggestions was really great.

Linus finally suggested to cleanup the name space and rename the low level locks in the architecture code to arch_spinlock.

The following patch series contains:
- the name space cleanup
- the new raw_spinlock implementation
- annotation of the most important locks

A git version of the series can be found here:

git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip rt/locking

Thanks,

tglx