[PATCH 2/3] drm: Only bump object-reference count when adding first handle

2016-01-04 Thread Ville Syrjälä
On Mon, Jan 04, 2016 at 10:11:00AM +, Chris Wilson wrote: > We only need a single reference count for all handles (i.e. non-zero > obj->handle_count) and so can trim a few atomic operations by only > taking the reference on the first handle and dropping it after the last. > > Signed-off-by: Ch

[PATCH 2/3] drm: Only bump object-reference count when adding first handle

2016-01-04 Thread Chris Wilson
We only need a single reference count for all handles (i.e. non-zero obj->handle_count) and so can trim a few atomic operations by only taking the reference on the first handle and dropping it after the last. Signed-off-by: Chris Wilson --- drivers/gpu/drm/drm_gem.c | 17 - 1 fil