]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Always hold a reference on a waited upon request
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 07:10:43 +0000 (07:10 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 21 Nov 2019 16:14:57 +0000 (16:14 +0000)
commita32bf678c5a335c4e154d0b15b6e183764687b05
tree354459ab60cff46aa737846bc1c59a4e768ba849
parent56ae57a7bad96a1a4fb0e7b6789ec83ff6161b2b
drm/i915/selftests: Always hold a reference on a waited upon request

Whenever we wait on a request, make sure we actually hold a reference to
it and that it cannot be retired/freed on another CPU!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Acked-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191121071044.97798-4-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/selftest_lrc.c