]> 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)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 11 Mar 2021 10:11:22 +0000 (11:11 +0100)
commit20a8ca1619c44648f05314ef5c5b3436b6dd8f80
tree6ba897a204b902b9fae83df22b65dead8fb739c6
parent76219d88204b76aed1e67990bf7bdc0f1aca6862
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: 76219d88204b ("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
(cherry picked from commit 19089b760e56c97458c272e90e43da761b05cf12)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/qxl/qxl_release.c