drm/i915: Only restrict noreclaim in the early shrink passes
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 9 Jun 2017 11:03:48 +0000 (12:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 14 Jun 2017 09:53:37 +0000 (10:53 +0100)
commit0f6ab55d7ab6847e9b799022ed3b5511c756e512
tree607f7e5da015d5d4ff6f509eda6a86dae3e14b41
parenteaf41801559a687cc7511c04dc712984765c9dd7
drm/i915: Only restrict noreclaim in the early shrink passes

In our first pass, we do not want to use reclaim at all as we want to
solely reap the i915 buffer caches (its purgeable pages). But we don't
mind it initiates IO or pulls via the FS (but it shouldn't anyway as we
say no to reclaim!). Just drop the GFP_IO constraint for simplicity.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170609110350.1767-3-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem.c