lkml.org 
[lkml]   [2006]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[RFC][PATCH 13/20] kthread: Update kthread to work with pspaces.
From
Date


Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>


---

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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-02-06 21:03    [W:0.086 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site