projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa18bc8
)
drm/i915: Actually pass the reclaim gfp_t along to shmemfs!
author
Chris Wilson
<
[email protected]
>
Wed, 22 Mar 2017 22:34:47 +0000
(22:34 +0000)
committer
Chris Wilson
<
[email protected]
>
Thu, 23 Mar 2017 09:30:20 +0000
(09:30 +0000)
Words cannot describe the embarrassment at creating a new gfp_t relaim to
only prevent the oomkiller but allow direct|kswapd reclaim, and then not
use it in the shmem_read_mapping_page_gfp().
Fixes: 24f8e00a8a2e ("drm/i915: Prefer to report ENOMEM rather than incur the oom for gfx allocations")
Signed-off-by: Chris Wilson <
[email protected]
>
Cc: Joonas Lahtinen <
[email protected]
>
Cc: Daniel Vetter <
[email protected]
>
Link:
http://patchwork.freedesktop.org/patch/msgid/
[email protected]
Reviewed-by: Joonas Lahtinen <
[email protected]
>
drivers/gpu/drm/i915/i915_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem.c
b/drivers/gpu/drm/i915/i915_gem.c
index 9d710bd8c6c912d981651c99f97f40db456537e6..2a32d7c120fcabc64453099156706bfe9b52a20f 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem.c
+++ b/
drivers/gpu/drm/i915/i915_gem.c
@@
-2343,7
+2343,7
@@
rebuild_st:
reclaim = mapping_gfp_constraint(mapping, 0);
reclaim |= __GFP_NORETRY; /* reclaim, but no oom */
- page = shmem_read_mapping_page_gfp(mapping, i,
gfp
);
+ page = shmem_read_mapping_page_gfp(mapping, i,
reclaim
);
if (IS_ERR(page)) {
ret = PTR_ERR(page);
goto err_sg;