tests: add gem_flink_race

This exercises a race in the flink name descruction of the current drm
gem core. When racing a gem close with a gem open the open can sneak
in and cause the kernel to leak the flink name and its reference.

This results in leaked gem objects that won't get reaped even at drm
file close time. On my 2 core/4 threads snb machine this leaks on the
order of 1k objects per second.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-07-23 23:14:57 +02:00
parent 8e46c382e3
commit 7b5440a09a
3 changed files with 118 additions and 0 deletions
+1
View File
@@ -30,6 +30,7 @@ gem_exec_nop
gem_fenced_exec_thrash
gem_fence_thrash
gem_flink
gem_flink_race
gem_gtt_concurrent_blit
gem_gtt_cpu_tlb
gem_gtt_speed