use __GFP_NOKILL in poll table pages
Subsystems (2)
PATCH 5/13 use __GFP_NOKILL in poll table pages
Poll tables are build in order to service syscalls, and failing the poll() call is a superior alternative to invoking the OOM killer.
fs/select.c +1 -1
@@ -80,7 +80,7 @@if (!table ||POLL_TABLE_FULL (table)) {struct poll_table_page *new_table; - new_table = (struct poll_table_page *)__get_free_page (GFP_KERNEL ); + new_table = (struct poll_table_page *)__get_free_page (GFP_KERNEL | __GFP_NOKILL);if (!new_table) { p->error = -ENOMEM ;__set_current_state (TASK_RUNNING );
--
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/