]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Invalidate our pages under memory pressure
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 25 Mar 2014 13:23:06 +0000 (13:23 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 May 2014 07:51:18 +0000 (09:51 +0200)
commit7776181dc30aae2b2b1d75dcccc13ba16605d54e
treedb2c43c4a7bedbe567a483154da85ea0fdac37a0
parentbbbdcf70f8b7b4f2cac4bb5d00cfbc45d1d98af2
drm/i915: Invalidate our pages under memory pressure

Try to flush out dirty pages into the swapcache (and from there into the
swapfile) when under memory pressure and forced to drop GEM objects from
memory. In effect, this should just allow us to discard unused pages for
memory reclaim and to start writeback earlier.

v2: Hugh Dickins warned that explicitly starting writeback from
shrink_slab was prone to deadlocks within shmemfs.

Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Robert Beckett <robert.beckett@intel.com>
Reviewed-by: Rafael Barbalho <rafael.barbalho@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c