[PATCH] __group_complete_signal: remove bogus BUG_ON

From: Oleg Nesterov
Date: Tue Apr 11 2006 - 10:23:53 EST


Commit e56d090310d7625ecb43a1eeebd479f04affb48b
[PATCH] RCU signal handling

made this BUG_ON() unsafe. This code runs under ->siglock,
while switch_exec_pids() takes tasklist_lock.

Signed-off-by: Oleg Nesterov <oleg@xxxxxxxxxx>

--- 2.6.16/kernel/signal.c~ 2006-02-13 21:47:19.000000000 +0300
+++ 2.6.16/kernel/signal.c 2006-04-11 21:53:03.000000000 +0400
@@ -975,7 +975,6 @@ __group_complete_signal(int sig, struct
if (t == NULL)
/* restart balancing at this thread */
t = p->signal->curr_target = p;
- BUG_ON(t->tgid != p->tgid);

while (!wants_signal(sig, t)) {
t = next_thread(t);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/