summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/i915_gem_execbuffer.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-01-08 10:53:13 +0000
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-01-17 22:08:00 +0100
commit419fa72a1973c9ba2fd2c2505dc889f54b857459 (patch)
treef16212414b17bb55a5c90c0a11de01fd8d487fd5 /drivers/gpu/drm/i915/i915_gem_execbuffer.c
parent43e28f092b2fa4ebc46bdc210134a80610815785 (diff)
downloadlwn-419fa72a1973c9ba2fd2c2505dc889f54b857459.tar.gz
lwn-419fa72a1973c9ba2fd2c2505dc889f54b857459.zip
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 <chris@chris-wilson.co.uk> Reviewed-by: Imre Deak <imre.deak@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem_execbuffer.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem_execbuffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem_execbuffer.c b/drivers/gpu/drm/i915/i915_gem_execbuffer.c
index 163bb52bd3b3..986eb98f0d25 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);