worker_thread: don't play with signals
authorOleg Nesterov <oleg@tv-sign.ru>
Wed, 9 May 2007 09:34:20 +0000 (02:34 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 9 May 2007 19:30:53 +0000 (12:30 -0700)
worker_thread() doesn't need to "Block and flush all signals", this was
already done by its caller, kthread().

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/workqueue.c

index 0611de815a8f921a4d2215f52959de832acb5c9d..87693b37d017add2a28af93db2213dfea2bc5d6e 100644 (file)
@@ -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.