mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
drm/i915: Actually pass the reclaim gfp_t along to shmemfs!
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: 24f8e00a8a
("drm/i915: Prefer to report ENOMEM rather than incur the oom for gfx allocations")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20170322223447.7493-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
This commit is contained in:
parent
aa18bc8ddc
commit
40149f00fb
1 changed files with 1 additions and 1 deletions
|
@ -2343,7 +2343,7 @@ rebuild_st:
|
||||||
reclaim = mapping_gfp_constraint(mapping, 0);
|
reclaim = mapping_gfp_constraint(mapping, 0);
|
||||||
reclaim |= __GFP_NORETRY; /* reclaim, but no oom */
|
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)) {
|
if (IS_ERR(page)) {
|
||||||
ret = PTR_ERR(page);
|
ret = PTR_ERR(page);
|
||||||
goto err_sg;
|
goto err_sg;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue