Signed-off-by: Eric W. Biederman <[email protected]> --- kernel/kthread.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) 4dbaead60e8ba1ef38aea6059d1abb6f6a10fd1b diff --git a/kernel/kthread.c b/kernel/kthread.c index e75950a..0b4fa7b 100644 --- a/kernel/kthread.c +++ b/kernel/kthread.c @@ -12,6 +12,7 @@ #include <linux/unistd.h> #include <linux/file.h> #include <linux/module.h> +#include <linux/pspace.h> #include <asm/semaphore.h> /* @@ -114,7 +115,7 @@ static void keventd_create_kthread(void create->result = ERR_PTR(pid); } else { wait_for_completion(&create->started); - create->result = find_task_by_pid(pid); + create->result = find_task_by_pid(current->pspace, pid); } complete(&create->done); } -- 1.1.5.g3480 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [RFC][PATCH 14/20] mm: Update vmscan to work with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 14/20] mm: Update vmscan to work with pspaces.
- References:
- [RFC][PATCH 0/20] Multiple instances of the process id namespace
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 01/20] pid: Intoduce the concept of a wid (wait id)
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 02/20] pspace: The parent process id of pid 1 is always 0.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 03/20] pid: Introduce a generic helper to test for init.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 04/20] pspace: Allow multiple instaces of the process id namespace
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 05/20] sched: Fixup the scheduler syscalls to deal with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 06/20] cad_pid: Fixup the cad_pid users to assume it is in the initial process id namespace.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 07/20] tty: Update the tty layer to work with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 08/20] vt: Update the virtual console to handle pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 09/20] ptrace: Update ptrace handle pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 10/20] capabilities: Update the capabilities code to handle pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 11/20] ioprio: Update ioprio to handle pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 12/20] fcntl: Update fcntl to work with pspaces.
- From: [email protected] (Eric W. Biederman)
- [RFC][PATCH 0/20] Multiple instances of the process id namespace
- Prev by Date: Re: Linux drivers management
- Next by Date: Re: [PATCH 1/5] cpuset memory spread basic implementation
- Previous by thread: [RFC][PATCH 12/20] fcntl: Update fcntl to work with pspaces.
- Next by thread: [RFC][PATCH 14/20] mm: Update vmscan to work with pspaces.
- Index(es):