We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a00ed4e commit 713fa3eCopy full SHA for 713fa3e
drivers/gpu/drm/i915/gem/i915_gem_context.c
@@ -997,6 +997,10 @@ void i915_gem_context_release(struct kref *ref)
997
trace_i915_context_free(ctx);
998
GEM_BUG_ON(!i915_gem_context_is_closed(ctx));
999
1000
+ spin_lock(&ctx->i915->gem.contexts.lock);
1001
+ list_del(&ctx->link);
1002
+ spin_unlock(&ctx->i915->gem.contexts.lock);
1003
+
1004
if (ctx->syncobj)
1005
drm_syncobj_put(ctx->syncobj);
1006
@@ -1228,10 +1232,6 @@ static void context_close(struct i915_gem_context *ctx)
1228
1232
*/
1229
1233
lut_close(ctx);
1230
1234
1231
- spin_lock(&ctx->i915->gem.contexts.lock);
- list_del(&ctx->link);
- spin_unlock(&ctx->i915->gem.contexts.lock);
-
1235
mutex_unlock(&ctx->mutex);
1236
1237
/*
0 commit comments