drm/qxl: avoid dependency lock
authorFrediano Ziglio <fziglio@redhat.com>
Thu, 24 Sep 2015 13:18:22 +0000 (14:18 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 7 Oct 2015 05:33:45 +0000 (15:33 +1000)
commit266424b5377ed1c3033d97ed5bc4fca7d89921a1
tree19c0707944021d1ef05edf5e727eee66769fe2c2
parent7eb9974f3685f36f419bf9e66cfaee92849856fe
drm/qxl: avoid dependency lock

qxl_bo_unref calls drm_gem_object_unreference_unlocked which
locks dev->struct_mutex. However this lock could be already
locked if the call came from qxl_gem_object_free.
As we don't need to call qxl_bo_ref/qxl_bo_unref cause
qxl_release_list_add will hold a reference by itself avoid
to call them and the possible deadlock.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/qxl/qxl_release.c