Skip to content

Commit 419fa72

Browse files
ickledanvet
authored andcommitted
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>
1 parent 43e28f0 commit 419fa72

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/gpu/drm/i915/i915_gem_execbuffer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,7 @@ i915_gem_execbuffer2(struct drm_device *dev, void *data,
11131113
}
11141114

11151115
exec2_list = kmalloc(sizeof(*exec2_list)*args->buffer_count,
1116-
GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY);
1116+
GFP_TEMPORARY | __GFP_NOWARN | __GFP_NORETRY);
11171117
if (exec2_list == NULL)
11181118
exec2_list = drm_malloc_ab(sizeof(*exec2_list),
11191119
args->buffer_count);

0 commit comments

Comments
 (0)