]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gvt: Stop waiting whilst holding struct_mutex
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 19 Oct 2016 10:11:44 +0000 (11:11 +0100)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Thu, 20 Oct 2016 09:31:34 +0000 (17:31 +0800)
commit5c245d745d6d89a5acda7182dce35dba513d04c9
treee446f3d620832c3987bec192d8af95634d507c80
parent58c6a2271637fcf7460ee85fe2d686b90c28dc9f
drm/i915/gvt: Stop waiting whilst holding struct_mutex

For whatever reason, the gvt scheduler runs synchronously. At the very
least, lets run synchronously without holding the struct_mutex.

v2: cut'n'paste mutex_lock instead of unlock.
Replace long hold of struct_mutex with a mutex to serialise the worker
threads.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
drivers/gpu/drm/i915/gvt/scheduler.c