Chris Wilson 9fab8a2ea0 drm/i915: Removing polling for struct_mutex from vmap shrinker
The wait-for-idle used from within the shrinker_lock_uninterruptible
depends on the struct_mutex locking state being known and declared to
i915_request_wait(). As it is conceivable that we reach the vmap
notifier from underneath struct_mutex (and so keep on relying on the
mutex_trylock_recursive), we should not blindly call i915_request_wait.

In the process we can remove the dubious polling to acquire
struct_mutex, and simply act, or not, on a successful trylock.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190109164204.23935-2-chris@chris-wilson.co.uk
2019-01-10 13:44:07 +00:00
..
2019-01-09 10:26:36 +02:00
2019-01-09 10:26:36 +02:00
2019-01-09 10:26:36 +02:00
2018-11-20 12:49:24 +02:00
2019-01-09 10:26:36 +02:00
2019-01-10 09:43:33 +00:00
2018-08-15 17:39:07 -07:00
2018-03-08 10:07:18 +00:00
2018-08-28 18:49:33 +03:00
2019-01-09 10:26:36 +02:00
2019-01-09 10:26:36 +02:00
2019-01-09 10:26:36 +02:00
2019-01-09 10:26:36 +02:00
2019-01-09 10:26:36 +02:00
2019-01-10 09:43:33 +00:00
2019-01-09 10:26:36 +02:00
2019-01-09 10:26:36 +02:00
2018-12-05 15:02:59 +00:00
2019-01-09 10:26:36 +02:00