Skip to content

Lock and Pointer guards

Peter Zijlstra linux-toolchains lkml rcu 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 39 repliesIn review
  2. v1 RFC2 patches 14 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2locking: Introduce __cleanup__ based guardsinclude/linux/compiler_attributes.h include/linux/guards.h include/linux/irqflags.h +6 more+197 -13 replies
2/2sched: Use fancy new guardskernel/sched/core.c kernel/sched/sched.h+590 -6710 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/2] Lock and Pointer guards

By popular demand, a new and improved version :-)

New since -v1 ( https://lkml.kernel.org/r/[email protected] )

- much improved interface for lock guards: guard() and scoped () { } as suggested by Linus.
- moved the ';' for the 'last' additional guard members into the definition as suggested by Kees.
- put __cleanup in the right place with the suggested comment as suggested by Kees and Miguel
- renamed the definition macros DEFINE_LOCK_GUARD_[012] to indicate the number of arguments the lock function takes
- added comments to guards.h
- renamed pretty much all guard types

Again compile and boot tested x86_64-defconfig