]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
kref: Add a kref_sub function
authorThomas Hellstrom <thellstrom@vmware.com>
Tue, 16 Nov 2010 14:21:07 +0000 (15:21 +0100)
committerDave Airlie <airlied@redhat.com>
Mon, 22 Nov 2010 03:25:13 +0000 (13:25 +1000)
commitecf7ace9a8450303a987aa8364e53860cd50e554
treebbad2c5982c3b76462cbee9e15458072bc80055d
parentd6ea88865d3e5b0c62040531310c1f2c6a994f46
kref: Add a kref_sub function

Makes it possible to optimize batched multiple unrefs.
Initial user will be drivers/gpu/ttm which accumulates unrefs to be
processed outside of atomic code.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
include/linux/kref.h
lib/kref.c