Skip to contentSkip to conversation

AutoPage Migration - V0.1 - 5/8 x64_64 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 - 5/8 x64_64 check/notify internode migration

Hook check for task memory migration for x86_64.

arch/x86_64/kernel/signal.c +8 -0
Index: linux-2.6.16-rc5-git6/arch/x86_64/kernel/signal.c
===================================================================
@@ -24,6 +24,8 @@
 #include <linux/stddef.h>
 #include <linux/personality.h>
 #include <linux/compiler.h>
+#include <linux/auto-mmigrate.h>
+
 #include <asm/ucontext.h>
 #include <asm/uaccess.h>
 #include <asm/i387.h>
@@ -497,6 +499,12 @@ void do_notify_resume(struct pt_regs *re
 		clear_thread_flag(TIF_SINGLESTEP);
 	}
 
+	/*
+	 * 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 (thread_info_flags & _TIF_SIGPENDING)
 		do_signal(regs,oldset);

--
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>