honor __GFP_NOKILL
Subsystems (3)
PATCH 2/13 honor __GFP_NOKILL
In order to honor __GFP_NOKILL, the OOM killer should not be invoked when the __GFP_NOKILL flag is set. try_to_free_pages() is the sole caller of out_of_memory().
mm/vmscan.c +1 -1
@@ -688,7 +688,7 @@blk_congestion_wait (WRITE ,HZ /4 );shrink_slab (total_scanned, gfp_mask); } -if (gfp_mask & __GFP_FS) +if ((gfp_mask & __GFP_FS) && !(gfp_mask & __GFP_NOKILL))out_of_memory ();return 0 ; }
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/