Skip to contentSkip to conversation

use __GFP_NOKILL in poll table pages

PATCH In review William Lee Irwin III 1 participant 1 message Sep 26, 2002

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
diff -urN linux-2.5.33/fs/select.c linux-2.5.33-mm5/fs/select.c
@@ -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/