The patch titled do_wait() wakeup optimization: child_wait_callback: check __WNOTHREAD case has been removed from the -mm tree. Its filename was do_wait-wakeup-optimization-child_wait_callback-check-__wnothread-case.patch This patch was dropped because it was merged into mainline or a subsystem tree The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: do_wait() wakeup optimization: child_wait_callback: check __WNOTHREAD case From: Oleg Nesterov <oleg@xxxxxxxxxx> Suggested by Roland. do_wait(__WNOTHREAD) can only succeed if the caller is either ptracer, or it is ->real_parent and the child is not traced. IOW, caller == p->parent otherwise we should not wake up. Change child_wait_callback() to check this. Ratan reports the workload with CPU load >99% caused by unnecessary wakeups, should be fixed by this patch. Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx> Acked-by: Roland McGrath <roland@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Cc: Ratan Nalumasu <rnalumasu@xxxxxxxxx> Cc: Vitaly Mayatskikh <vmayatsk@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/exit.c | 3 +++ 1 file changed, 3 insertions(+) diff -puN kernel/exit.c~do_wait-wakeup-optimization-child_wait_callback-check-__wnothread-case kernel/exit.c --- a/kernel/exit.c~do_wait-wakeup-optimization-child_wait_callback-check-__wnothread-case +++ a/kernel/exit.c @@ -1581,6 +1581,9 @@ static int child_wait_callback(wait_queu if (!eligible_child(wo, p)) return 0; + if ((wo->wo_flags & __WNOTHREAD) && wait->private != p->parent) + return 0; + return default_wake_function(wait, mode, sync, key); } _ Patches currently in -mm which might be from oleg@xxxxxxxxxx are origin.patch linux-next.patch do_wait-optimization-do-not-place-sub-threads-on-task_struct-children-list.patch utrace-core.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html