Skip to contentSkip to conversation

AutoPage Migration - V0.1 - 4/8 ia64 check/notify internode migration

PATCH/RFC Lee Schermerhorn 1 participant 1 message Mar 10, 2006 Memory management

lore
Share & tools
lore
#0 lore raw

AutoPage Migration - V0.1 - 4/8 ia64 check/notify internode migration

This patch hooks the check for task memory migration pending into the ia64 do_notify_resume() function.

arch/ia64/kernel/process.c +7 -0
Index: linux-2.6.16-rc5-git6/arch/ia64/kernel/process.c
===================================================================
@@ -31,6 +31,7 @@
 #include <linux/interrupt.h>
 #include <linux/delay.h>
 #include <linux/kprobes.h>
+#include <linux/auto-migrate.h>
 
 #include <asm/cpu.h>
 #include <asm/delay.h>
@@ -173,6 +174,12 @@ do_notify_resume_user (sigset_t *oldset,
 		pfm_handle_work();
 #endif
 
+	/*
+	 * check for task memory migration before delivering
+	 * signals so that hander[s] use memory in new node.
+	 */
+	check_migrate_pending();
+
 	/* deal with pending signal delivery */
 	if (test_thread_flag(TIF_SIGPENDING))
 		ia64_do_signal(oldset, scr, in_syscall);

--
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/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>