Skip to content

Introduce kref_sub

Thomas Hellstrom dri-devel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kref: Add a kref_sub functioninclude/linux/kref.h lib/kref.c+32 -00 replies
2/2drm/ttm: Use kref_sub instead of repeatedly calling kref_putdrivers/gpu/drm/ttm/ttm_bo.c+2 -40 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/2] Introduce kref_sub

Adding a function in order to be able to optimize away a number of locked bus cycles. Callers might for whatever reason want to accumulate unreferences in certain code paths (rcu grace periods, atomic regions ...). This makes it possible to perform the batched unreference more efficiently.

If accepted, I'd prefer patch 1 goes through Dave's DRM tree.