~/talk

Kernel Locking Engineering

links:none on file
slides:none on file

Presents a practical hierarchy of kernel locking patterns: prefer immutable state, single-owner handoff, reference counting and simple per-object locks before fine-grained or lockless tricks. Recommends tools and idioms: lockdep annotations and runtime lock-order checks, workqueues/flush_work, kref_get_unless_zero for composable weak refs, avoid inventing primitives, and treat RCU pitfalls carefully. Shows the DRM atomic mode-setting framework implemented as a check/commit transaction with per-object locks, mutex-graph ordering and ownership-based commits; the framework is used in drivers and proves the approach works in production.

AI-written summary · about

  1. 0:00Introduction
  2. 3:06Locking priorities
  3. 5:50Designing for correctness
  4. 10:32Avoiding custom primitives
  5. 13:06Performance considerations
  6. 15:00Protecting data over code
  7. 19:23Locking design patterns
  8. 23:35Simple lock approach
  9. 25:45Fine-grained locking
  10. 31:21Dangerous lockless tricks
  11. 36:19Case study: Atomic modesetting
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.