[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161204235718.1102-1-eric@engestrom.ch>
Date: Sun, 4 Dec 2016 23:57:18 +0000
From: Eric Engestrom <eric@...estrom.ch>
To: linux-kernel@...r.kernel.org
Cc: Eric Engestrom <eric@...estrom.ch>,
Pei Zhang <pei.zhang@...el.com>,
Zhenyu Wang <zhenyuw@...ux.intel.com>,
Zhi Wang <zhi.a.wang@...el.com>,
Daniel Vetter <daniel.vetter@...el.com>,
Jani Nikula <jani.nikula@...ux.intel.com>,
David Airlie <airlied@...ux.ie>, igvt-g-dev@...ts.01.org,
intel-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org
Subject: [PATCH] drm/i915/gvt: fix deadlock in dispatch_workload()'s error path
90d27a1 moved the lock before this error path but forgot to add an
unlock here.
Fixes: 90d27a1b180e51ef0713 ("drm/i915/gvt: fix deadlock in workload_thread")
Cc: Pei Zhang <pei.zhang@...el.com>
Cc: Zhenyu Wang <zhenyuw@...ux.intel.com>
Signed-off-by: Eric Engestrom <eric@...estrom.ch>
---
drivers/gpu/drm/i915/gvt/scheduler.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/gpu/drm/i915/gvt/scheduler.c b/drivers/gpu/drm/i915/gvt/scheduler.c
index f898df3..cd13c4b 100644
--- a/drivers/gpu/drm/i915/gvt/scheduler.c
+++ b/drivers/gpu/drm/i915/gvt/scheduler.c
@@ -177,6 +177,7 @@ static int dispatch_workload(struct intel_vgpu_workload *workload)
rq = i915_gem_request_alloc(dev_priv->engine[ring_id], shadow_ctx);
if (IS_ERR(rq)) {
gvt_err("fail to allocate gem request\n");
+ mutex_unlock(&dev_priv->drm.struct_mutex);
workload->status = PTR_ERR(rq);
return workload->status;
}
--
Cheers,
Eric
Powered by blists - more mailing lists