diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2019-10-31 07:56:23 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2019-10-31 07:57:19 +0000 |
commit | 963b3e0476204047abd005326ee0e05a02311d06 (patch) | |
tree | 0950ff4da28cf37a1b139ea2bb286f27a526a5b6 /tests/i915/gem_ctx_persistence.c | |
parent | 7c7621e879104ece28a39bebac57e34de2d76975 (diff) |
i915/gem_ctx_persistence: Double the rcu barrier
It seems the first rcu barrier may race with the addition of the file to
the rcu task list; so wait again.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Andi Shyti <andi.shyti@intel.com>
Diffstat (limited to 'tests/i915/gem_ctx_persistence.c')
-rw-r--r-- | tests/i915/gem_ctx_persistence.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/i915/gem_ctx_persistence.c b/tests/i915/gem_ctx_persistence.c index 17c39c42..a418fef9 100644 --- a/tests/i915/gem_ctx_persistence.c +++ b/tests/i915/gem_ctx_persistence.c @@ -634,8 +634,9 @@ static void __smoker(int i915, unsigned int engine, int expected) close(fd); + rcu_barrier(i915); /* flush the delayed fput */ sched_yield(); - rcu_barrier(i915); + rcu_barrier(i915); /* again, in case it was added after we waited! */ igt_spin_end(spin); |