[merged] kthread-dont-looking-for-a-task-in-create_kthread-2.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     kthread: don't look for a task in create_kthread()
has been removed from the -mm tree.  Its filename was
     kthread-dont-looking-for-a-task-in-create_kthread-2.patch

This patch was dropped because it was merged into mainline or a subsystem tree

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: kthread: don't look for a task in create_kthread()
From: Vitaliy Gusev <vgusev@xxxxxxxxxx>

Remove the unnecessary find_task_by_pid_ns().  kthread() can just use
"current" to get the same result.

Signed-off-by: Vitaliy Gusev <vgusev@xxxxxxxxxx>
Cc: Oleg Nesterov <oleg@xxxxxxxxxx>
Cc: Pavel Emelyanov <xemul@xxxxxxxxxx>
Cc: Christoph Hellwig <hch@xxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/kthread.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff -puN kernel/kthread.c~kthread-dont-looking-for-a-task-in-create_kthread-2 kernel/kthread.c
--- a/kernel/kthread.c~kthread-dont-looking-for-a-task-in-create_kthread-2
+++ a/kernel/kthread.c
@@ -78,6 +78,7 @@ static int kthread(void *_create)
 
 	/* OK, tell user we're spawned, wait for stop or wakeup */
 	__set_current_state(TASK_UNINTERRUPTIBLE);
+	create->result = current;
 	complete(&create->started);
 	schedule();
 
@@ -103,9 +104,6 @@ static void create_kthread(struct kthrea
 	} else {
 		struct sched_param param = { .sched_priority = 0 };
 		wait_for_completion(&create->started);
-		read_lock(&tasklist_lock);
-		create->result = find_task_by_pid_ns(pid, &init_pid_ns);
-		read_unlock(&tasklist_lock);
 		/*
 		 * root may have changed our (kthreadd's) priority or CPU mask.
 		 * The kernel thread should not inherit these properties.
_

Patches currently in -mm which might be from vgusev@xxxxxxxxxx are

linux-next.patch
kthreads-move-sched-realeted-initialization-from-kthreadd-context.patch
kthreads-simplify-the-startup-synchronization.patch
kthreads-rework-kthread_stop.patch
kthreads-simplify-migration_thread-exit-path.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux