[06/11] drm/i915/gt: Schedule next retirement worker first
diff mbox series

Message ID 20191116175139.1790440-6-chris@chris-wilson.co.uk
State New
Headers show
  • [01/11] drm/i915/gt: Close race between engine_park and intel_gt_retire_requests
Related show

Commit Message

Chris Wilson Nov. 16, 2019, 5:51 p.m. UTC
As we may park the gt during request retirement, we may then cancel the
retirement worker only to then program the delayed worker once more.

If we schedule the next delayed retirement worker first, if we then park
the gt, the work remain cancelled [until we unpark].

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
 drivers/gpu/drm/i915/gt/intel_gt_requests.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff mbox series

diff --git a/drivers/gpu/drm/i915/gt/intel_gt_requests.c b/drivers/gpu/drm/i915/gt/intel_gt_requests.c
index 74356db43325..4dc3cbeb1b36 100644
--- a/drivers/gpu/drm/i915/gt/intel_gt_requests.c
+++ b/drivers/gpu/drm/i915/gt/intel_gt_requests.c
@@ -109,9 +109,9 @@  static void retire_work_handler(struct work_struct *work)
 	struct intel_gt *gt =
 		container_of(work, typeof(*gt), requests.retire_work.work);
-	intel_gt_retire_requests(gt);
+	intel_gt_retire_requests(gt);
 void intel_gt_init_requests(struct intel_gt *gt)