Re: [PATCH 2.6.17-rc1-mm1 4/9] AutoPage Migration - V0.2 - ia64 check/notify internode migration

Lee Schermerhorn
2006-04-07T20:38:04Z

AutoPage Migration - V0.2 - 4/9 ia64 check/notify internode migration

V0.2 - refresh only

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

Signed-off-by: Lee Schermerhorn <lee.schermerhorn@hp.com>

Index: linux-2.6.16-mm1/arch/ia64/kernel/process.c
===================================================================
--- linux-2.6.16-mm1.orig/arch/ia64/kernel/process.c 2006-03-23 11:00:43.000000000 -0500
+++ linux-2.6.16-mm1/arch/ia64/kernel/process.c 2006-03-23 16:49:58.000000000 -0500
@@ -30,6 +30,7 @@
#include <linux/efi.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
+#include <linux/auto-migrate.h>

#include <asm/cpu.h>
#include <asm/delay.h>
@@ -172,6 +173,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);