diff options
author | Chris Wilson | 2017-10-13 22:26:21 +0200 |
---|---|---|
committer | Chris Wilson | 2017-10-16 21:44:19 +0200 |
commit | cc731f5a3b1f592d8aef04c9de720c6bc09b209a (patch) | |
tree | 6835f462c34320565e20ec07c629b028e2d89357 /drivers/gpu/drm/i915/dvo_ivch.c | |
parent | drm/i915: Only free the oldest stale object before a fresh allocation (diff) | |
download | kernel-qcow2-linux-cc731f5a3b1f592d8aef04c9de720c6bc09b209a.tar.gz kernel-qcow2-linux-cc731f5a3b1f592d8aef04c9de720c6bc09b209a.tar.xz kernel-qcow2-linux-cc731f5a3b1f592d8aef04c9de720c6bc09b209a.zip |
drm/i915: Trim struct_mutex hold duration for i915_gem_free_objects
We free objects in bulk after they wait for their RCU grace period.
Currently, we take struct_mutex and unbind all the objects. This can lead
to a long lock duration during which time those objects have their pages
unfreeable (i.e. the shrinker is prevented from reaping those pages). If
we only process a single object under the struct_mutex and then free the
pages, the number of objects locked away from the shrinker is minimal
and we allow regular clients better access to struct_mutex if they need
it.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171013202621.7276-9-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/dvo_ivch.c')
0 files changed, 0 insertions, 0 deletions