From: Chris Wilson Date: Tue, 8 Jan 2013 10:53:13 +0000 (+0000) Subject: drm/i915: Mark a temporary allocation for copy-from-user as such X-Git-Tag: v3.9-rc1~83^2~36^2~93 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=419fa72a1973c9ba2fd2c2505dc889f54b857459;p=profile%2Fcommon%2Fkernel-common.git drm/i915: Mark a temporary allocation for copy-from-user as such The difference is that the kernel will then know that this memory will be reclaimable in the near future. Signed-off-by: Chris Wilson Reviewed-by: Imre Deak Signed-off-by: Daniel Vetter --- diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c index 163bb52b..986eb98 100644 --- a/drivers/gpu/drm/i915/i915_gem_execbuffer.c +++ b/drivers/gpu/drm/i915/i915_gem_execbuffer.c @@ -1113,7 +1113,7 @@ i915_gem_execbuffer2(struct drm_device *dev, void *data, } exec2_list = kmalloc(sizeof(*exec2_list)*args->buffer_count, - GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY); + GFP_TEMPORARY | __GFP_NOWARN | __GFP_NORETRY); if (exec2_list == NULL) exec2_list = drm_malloc_ab(sizeof(*exec2_list), args->buffer_count);