]> 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)
commit50a57f3f13ef3786173372296d2ee7bdef123051
treedb2c43c4a7bedbe567a483154da85ea0fdac37a0
parentf0db956c077f315f23b2a1d5352111882ca54600
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