diff options
author | Rob Herring <[email protected]> | 2019-08-22 21:12:14 -0500 |
---|---|---|
committer | Rob Herring <[email protected]> | 2019-08-23 11:54:49 -0500 |
commit | ce49324261956f4bdec633280f30bf0697dafaef (patch) | |
tree | 5f685067158af28e39ddf3c91fd834a4f7a1ad73 /tools/perf/scripts/python | |
parent | dfbc7a46b940b5d5ef8c3db3b7c3b51e6ec8fec4 (diff) |
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 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions