]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Use our singlethreaded wq for freeing objects
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Jan 2018 12:28:45 +0000 (12:28 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Jan 2018 20:33:01 +0000 (20:33 +0000)
commita147a75a5a9e32b4f778ecc9491fdc6ca69d0cfd
tree0a04864db6191d5ec931348ea17c11ebce80fc4a
parent017241c2b4ee178178168ee3c609a85c74f7551f
drm/i915: Use our singlethreaded wq for freeing objects

As freeing the objects require serialisation on struct_mutex, we should
prefer to use our singlethreaded driver wq that is dedicated to work
requiring struct_mutex (hence serialised).The benefit should be less
clutter on the system wq, allowing it to make progress even when the
driver/struct_mutex is heavily contended.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180115122846.15193-1-chris@chris-wilson.co.uk
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
drivers/gpu/drm/i915/i915_gem.c