File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1269,6 +1269,10 @@ static void i915_gem_context_release_work(struct work_struct *work)
12691269 trace_i915_context_free (ctx );
12701270 GEM_BUG_ON (!i915_gem_context_is_closed (ctx ));
12711271
1272+ spin_lock (& ctx -> i915 -> gem .contexts .lock );
1273+ list_del (& ctx -> link );
1274+ spin_unlock (& ctx -> i915 -> gem .contexts .lock );
1275+
12721276 if (ctx -> syncobj )
12731277 drm_syncobj_put (ctx -> syncobj );
12741278
@@ -1521,10 +1525,6 @@ static void context_close(struct i915_gem_context *ctx)
15211525
15221526 ctx -> file_priv = ERR_PTR (- EBADF );
15231527
1524- spin_lock (& ctx -> i915 -> gem .contexts .lock );
1525- list_del (& ctx -> link );
1526- spin_unlock (& ctx -> i915 -> gem .contexts .lock );
1527-
15281528 client = ctx -> client ;
15291529 if (client ) {
15301530 spin_lock (& client -> ctx_lock );
You can’t perform that action at this time.
0 commit comments