]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execlists: Convert recursive defer_request() into iterative
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 25 Jun 2019 13:01:09 +0000 (14:01 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 25 Jun 2019 19:17:22 +0000 (20:17 +0100)
commit3da4377a0f3fbe715982f48d98e15152f361de50
treec184d7d430b3ec222e91e2773290c722088844fa
parent5b1dbe66bc9b99e3fafcc3c13b25c1314be4bd1f
drm/i915/execlists: Convert recursive defer_request() into iterative

As this engine owns the lock around rq->sched.link (for those waiters
submitted to this engine), we can use that link as an element in a local
list. We can thus replace the recursive algorithm with an iterative walk
over the ordered list of waiters.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190625130128.11009-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c