AutoPage Migration - ia64 check/notify internode migration NOTE: not recently tested on ia64 This patch hooks the check for task memory migration pending into the ia64 do_notify_resume() function. Call to check_migrate_pending() is a no-op if automigration is not configured. TODO: reconcile automigration and trace use of 'NOTIFY_RESUME Signed-off-by: Lee Schermerhorn <lee.schermerhorn@xxxxxx> arch/ia64/kernel/process.c | 9 +++++++++ 1 file changed, 9 insertions(+) Index: linux-2.6.36-mmotm-101103-1217/arch/ia64/kernel/process.c =================================================================== --- linux-2.6.36-mmotm-101103-1217.orig/arch/ia64/kernel/process.c +++ linux-2.6.36-mmotm-101103-1217/arch/ia64/kernel/process.c @@ -29,6 +29,7 @@ #include <linux/kdebug.h> #include <linux/utsname.h> #include <linux/tracehook.h> +#include <linux/auto-migrate.h> #include <asm/cpu.h> #include <asm/delay.h> @@ -193,12 +194,20 @@ do_notify_resume_user(sigset_t *unused, 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)) { local_irq_enable(); /* force interrupt enable */ ia64_do_signal(scr, in_syscall); } +//TODO: make sure tracehook_notify_resume() is NO-OP if not enabled +// by something other than TIF_NOTIFY_RESUME which is general flag. if (test_thread_flag(TIF_NOTIFY_RESUME)) { clear_thread_flag(TIF_NOTIFY_RESUME); tracehook_notify_resume(&scr->pt); -- To unsubscribe from this list: send the line "unsubscribe linux-numa" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html