OSDN Git Service

drm/i915: Trylock the object when shrinking
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 16 Dec 2021 14:27:41 +0000 (15:27 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Tue, 21 Dec 2021 12:26:33 +0000 (13:26 +0100)
commit2c3849baf2908d646b7466be52989835341551c4
treee26e0ca362deb053a90ac722c61eeec32f20017f
parentfb3965f9ae28b83290e5b5431a77aace66071ca1
drm/i915: Trylock the object when shrinking

We're working on requiring the obj->resv lock during unbind, fix
the shrinker to take the object lock.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211216142749.1966107-10-maarten.lankhorst@linux.intel.com
drivers/gpu/drm/i915/gem/i915_gem_shrinker.c