]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Lock the drm_mm while modifying
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jul 2019 09:17:13 +0000 (10:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 3 Jul 2019 10:07:57 +0000 (11:07 +0100)
commitbc88421977291ec288650d7ea049ff10ed4546c9
tree8263cc42a15ca905cd6d34aab27898a3ad54a581
parent0b058c4dca0a53cedc4b7d0c12db2012c8b47bb2
drm/i915/selftests: Lock the drm_mm while modifying

Remember to lock the drm_mm as we modify it, lest it be modified in the
background by retire/free workers!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190703091726.11690-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_mman.c