]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Lock the drm_mm as we search
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Jan 2020 18:34:58 +0000 (18:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 28 Jan 2020 19:00:13 +0000 (19:00 +0000)
commite9bb8080f3e32f4e71e5572c9a02150707d7ce3d
treee1e337777e5f713f61c868b28f2dbb4db46e51bf
parent1649794f4c41c0010214bbbfa3e60e8e4c92dda6
drm/i915/selftests: Lock the drm_mm as we search

Hold onto the vm->mutex (to lock the drm_mm) to ensure that the rbtree
is stable as we search it for our scratch node.

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/20200128183458.3860022-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_context.c