From: Oleg Nesterov Date: Wed, 9 May 2007 09:34:20 +0000 (-0700) Subject: worker_thread: don't play with signals X-Git-Tag: 2.1b_release~27861 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9aac8e0d32499217417ff0b494731811f185b18;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git worker_thread: don't play with signals worker_thread() doesn't need to "Block and flush all signals", this was already done by its caller, kthread(). Signed-off-by: Oleg Nesterov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/workqueue.c b/kernel/workqueue.c index 0611de8..87693b3 100644 --- a/kernel/workqueue.c +++ b/kernel/workqueue.c @@ -290,18 +290,11 @@ static int worker_thread(void *__cwq) struct cpu_workqueue_struct *cwq = __cwq; DEFINE_WAIT(wait); struct k_sigaction sa; - sigset_t blocked; if (!cwq->wq->freezeable) current->flags |= PF_NOFREEZE; set_user_nice(current, -5); - - /* Block and flush all signals */ - sigfillset(&blocked); - sigprocmask(SIG_BLOCK, &blocked, NULL); - flush_signals(current); - /* * We inherited MPOL_INTERLEAVE from the booting kernel. * Set MPOL_DEFAULT to insure node local allocations.