OSDN Git Service

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)
commit66bbc3b2b16b4d15de0bd737147538bcf4d355b6
treee446f3d620832c3987bec192d8af95634d507c80
parentf460c251ea37836c57584a18981820fbde809d1d
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