[Intel-gfx] [PATCH] drm: Inject a cond_resched() into long drm_clflush_sg()

Chris Wilson chris at chris-wilson.co.uk
Thu Jan 16 12:28:30 UTC 2020


Quoting David Laight (2020-01-16 12:26:45)
> However there is a call from __i915_gem_objet_set_pages() that
> is preceded by a lockdep_assert_held() check - so mustn't sleep.

That is a mutex; it's allowed to sleep. The might_sleep() here should
help assuage your fears.
-Chris


More information about the Intel-gfx mailing list