Skip to content
Snippets Groups Projects
Commit 8d82fbc2 authored by Chris Wilson's avatar Chris Wilson :thinking:
Browse files

i915/gem_ctx_persistence: Apply an rcu-barrier for fput cleanup


After any process termination, use an rcu-barrier to be sure that any
deferred struct file cleanup has been performed. By being consistent in
our paranoia here means that we can rule out more false positives and so
focus on what remains.

Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Acked-by: default avatarAndi Shyti <andi.shyti@intel.com>
parent 6237a45d
No related branches found
No related tags found
No related merge requests found
Pipeline #75967 passed
......@@ -468,6 +468,7 @@ static void test_process(int i915)
}
close(sv[0]);
igt_waitchildren();
rcu_barrier(i915); /* force the delayed fput() */
fence = recvfd(sv[1]);
close(sv[1]);
......@@ -516,6 +517,7 @@ static void test_process_mixed(int i915, unsigned int engine)
}
close(sv[0]);
igt_waitchildren();
rcu_barrier(i915); /* force the delayed fput() */
fence[0] = recvfd(sv[1]);
fence[1] = recvfd(sv[1]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment