Skip to content

Lock ordering documentation and annotation for lockdep

Sebastian Andrzej Siewior linux-arm-kernel linux-pci lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Documentation: Add lock ordering and nesting documentationDocumentation/locking/index.rst Documentation/locking/locktypes.rst+299 -03 replies
2/9timekeeping: Split jiffies seqlockkernel/time/jiffies.c kernel/time/tick-common.c kernel/time/tick-sched.c +2 more+28 -170 replies
3/9pci/switchtec: Don't abuse completion wait queue for polldrivers/pci/switch/switchtec.c+13 -910 replies
4/9sched/swait: Prepare usage in completionskernel/sched/sched.h kernel/sched/swait.c+10 -11 reply
5/9completion: Use simple wait queuesarch/powerpc/platforms/ps3/device-init.c drivers/net/wireless/intersil/orinoco/orinoco_usb.c drivers/usb/gadget/function/f_fs.c +3 more+30 -282 replies
6/9lockdep: Introduce wait-type checksinclude/linux/irqflags.h include/linux/lockdep.h include/linux/mutex.h +12 more+301 -4712 replies
7/9lockdep: Add hrtimer context tracing bitsinclude/linux/irqflags.h include/linux/sched.h kernel/locking/lockdep.c +1 more+22 -20 replies
8/9lockdep: Annotate irq_workinclude/linux/irq_work.h include/linux/irqflags.h kernel/irq_work.c +2 more+19 -00 replies
9/9lockdep: Add posixtimer context tracing bitsinclude/linux/irqflags.h kernel/time/posix-cpu-timers.c+17 -10 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchThomas GleixnerPeter Zijlstra (Intel)
1/9
2/9
3/9A-b
4/9
5/9
6/9Requested-by
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] Lock ordering documentation and annotation for lockdep

The first patch introduces the long asked locking documentation regarding spinlock_t vs raw_spinlock_t (and other locking primitives). Followed by updates to obey the rules including a change to completions to use struct swait_queue_head instead of wait_queue_head_t.

It ends with lockdep updates to recognize the "bad" lock nesting. This new lockdep feature is activated by CONFIG_PROVE_RAW_LOCK_NESTING. Once enabled it will report for instance printk, the memory allocator or the workqueue implementation. This is known and it is worked on.

Sebastian