]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
powerpc/eeh: Remove eeh_event_handler()->daemonize()
authorOleg Nesterov <oleg@redhat.com>
Wed, 28 Mar 2012 12:20:57 +0000 (12:20 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 2 Apr 2012 04:31:19 +0000 (14:31 +1000)
daemonize() is only needed when a user-space task does kernel_thread().

eeh_event_handler() thread is created by the worker kthread, and thus it
doesn't need the soon-to-be-deprecated daemonize().

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Linas Vepstas <linasvepstas@gmail.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: Matt Fleming <matt.fleming@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/eeh_event.c

index 4a475256585606889b791ce25a4f6683b21a315c..92dd84c124f18f6ce9aa158d83c390045ca66577 100644 (file)
@@ -59,7 +59,7 @@ static int eeh_event_handler(void * dummy)
        struct eeh_event *event;
        struct eeh_dev *edev;
 
-       daemonize("eehd");
+       set_task_comm(current, "eehd");
        set_current_state(TASK_INTERRUPTIBLE);
 
        spin_lock_irqsave(&eeh_eventlist_lock, flags);