mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[PATCH] relax sig_needs_tasklist()
handle_stop_signal() does not need tasklist_lock for SIG_KERNEL_STOP_MASK signals anymore. Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7d7185c818
commit
6108ccd3e2
1 changed files with 1 additions and 2 deletions
|
@ -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) && \
|
||||
|
|
Loading…
Reference in a new issue