aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/lima/lima_gem.c
diff options
context:
space:
mode:
authorRob Herring <[email protected]>2019-08-23 02:12:14 +0000
committerRob Herring <[email protected]>2019-08-28 15:02:39 +0000
commit55b9a0549e4303ca43481f9ba2cdfa305277d97d (patch)
treeb8520f2a5fd14c1508588c1501ce0cb591d9fc38 /drivers/gpu/drm/lima/lima_gem.c
parentdrm/shmem: Use mutex_trylock in drm_gem_shmem_purge (diff)
downloadkernel-55b9a0549e4303ca43481f9ba2cdfa305277d97d.tar.gz
kernel-55b9a0549e4303ca43481f9ba2cdfa305277d97d.zip
drm/panfrost: Use mutex_trylock in panfrost_gem_purge
Lockdep reports a circular locking dependency with pages_lock taken in the shrinker callback. The deadlock can't actually happen with current users at least as a BO will never be purgeable when pages_lock is held. To be safe, let's use mutex_trylock() instead and bail if a BO is locked already. Cc: Tomeu Vizoso <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Signed-off-by: Rob Herring <[email protected]> Reviewed-by: Steven Price <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/lima/lima_gem.c')
0 files changed, 0 insertions, 0 deletions