]> git.baikalelectronics.ru Git - kernel.git/commit
drm/qxl: fix lockdep issue in qxl_alloc_release_reserved
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 17 Feb 2021 12:32:06 +0000 (13:32 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 19 Feb 2021 08:13:25 +0000 (09:13 +0100)
commit19089b760e56c97458c272e90e43da761b05cf12
tree144e50a7ad9f3f94a21535170e62d51834c3285c
parent4fff19ae427548d8c37260c975a4b20d3c040ec6
drm/qxl: fix lockdep issue in qxl_alloc_release_reserved

Call qxl_bo_unpin (which does a reservation) without holding the
release_mutex lock.  Fixes lockdep (correctly) warning on a possible
deadlock.

Fixes: 65ffea3c6e73 ("drm/qxl: unpin release objects")
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Thomas Zimmermann <tzimmermann@suse.de>
Link: http://patchwork.freedesktop.org/patch/msgid/20210217123213.2199186-5-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_release.c