Skip to content

kref: inline and barriers

Peter Zijlstra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 37 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kref: Inline all functionsinclude/linux/kref.h lib/Makefile lib/kref.c+75 -1038 replies
2/3kref: Implement kref_put in terms of kref_subinclude/linux/kref.h+10 -180 replies
3/3kref: Remove the memory barriersinclude/linux/kref.h+0 -229 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] kref: inline and barriers
Quoted 1 line

From time to time people on #kernelnewbies ask what the difference is between

kref and using atomic_t yourself. And I keep having to tell them that kref is the slow and weird option.

These patches try and cure some of that, it inlines all functions and removes the superfluous memory barriers that are there for no good reason at all.