[PATCH 2/6] relax sig_needs_tasklist()

From: Oleg Nesterov
Date: Wed Feb 22 2006 - 18:06:01 EST


handle_stop_signal() does not need tasklist_lock for
SIG_KERNEL_STOP_MASK signals anymore.

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

--- 2.6.16-rc3/kernel/signal.c~2_RELAX 2006-02-23 00:36:49.000000000 +0300
+++ 2.6.16-rc3/kernel/signal.c 2006-02-23 01:22:45.000000000 +0300
@@ -146,8 +146,7 @@ static kmem_cache_t *sigqueue_cachep;
#define sig_kernel_stop(sig) \
(((sig) < SIGRTMIN) && T(sig, SIG_KERNEL_STOP_MASK))

-#define sig_needs_tasklist(sig) \
- (((sig) < SIGRTMIN) && T(sig, SIG_KERNEL_STOP_MASK | M(SIGCONT)))
+#define sig_needs_tasklist(sig) ((sig) == SIGCONT)

#define sig_user_defined(t, signr) \
(((t)->sighand->action[(signr)-1].sa.sa_handler != SIG_DFL) && \
-
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/