use __GFP_NOKILL in read_cache_page()
Subsystems (2)
PATCH 12/13 use __GFP_NOKILL in read_cache_page()
read_cache_page() may be failed instead of killing innocent tasks.
mm/filemap.c +1 -1
@@ -1199,7 +1199,7 @@ page =find_get_page (mapping, index);if (!page) {if (!cached_page) { - cached_page =page_cache_alloc (mapping); + cached_page =alloc_page (mapping->gfp_mask | __GFP_NOKILL);if (!cached_page)return ERR_PTR (-ENOMEM ); }
--
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/