drm: Don't reference objects in the flink name idr
authorKristian Hogsberg <krh@bitplanet.net>
Tue, 3 Dec 2013 01:36:17 +0000 (17:36 -0800)
committerDave Airlie <airlied@redhat.com>
Wed, 18 Dec 2013 00:48:17 +0000 (10:48 +1000)
There's no reason to keep a reference to objects in the name idr.  Each
handle to an object has a reference to the object and just before we
destroy the last handle we take the object out of the name idr.  Thus,
if an object is in the name idr, there's at least one reference to the
object.

Or to put it another way, the name idr reference will never keep the
object alive.  It just looks like it, which is confusing.

Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>

No differences found