sync: add internal refcounting to fences
authorErik Gilling <konkers@android.com>
Mon, 23 Jul 2012 23:43:05 +0000 (16:43 -0700)
committer黄涛 <huangtao@rock-chips.com>
Fri, 22 Feb 2013 09:46:59 +0000 (17:46 +0800)
commit3162da1d1873915b3e683362420d4bdad799885f
treeadfa828613cdb6ca2748d2a8431988dffd5986a2
parentf7b21468ffdc9c3696db7be6085725a515ef8181
sync: add internal refcounting to fences

If a fence is released while a timeline that one of it's pts is on is being
signaled, it is possible for that fence to be deleted before it is signaled.
This patch adds a refcount for internal references such as signaled pt
processing.

Change-Id: Ie8605e6fd2ac026c207220a03d84e1c1078ec719
Signed-off-by: Erik Gilling <konkers@android.com>
drivers/base/sync.c
include/linux/sync.h