Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932346AbWBFUBN (ORCPT ); Mon, 6 Feb 2006 15:01:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932348AbWBFUBN (ORCPT ); Mon, 6 Feb 2006 15:01:13 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:16768 "EHLO ebiederm.dsl.xmission.com") by vger.kernel.org with ESMTP id S932346AbWBFUBL (ORCPT ); Mon, 6 Feb 2006 15:01:11 -0500 To: Cc: , Herbert Poetzl , "Serge E. Hallyn" , Alan Cox , Dave Hansen , Arjan van de Ven , Suleiman Souhlal , Hubertus Franke , Cedric Le Goater , Kyle Moffett , Kirill Korotaev , Greg , Linus Torvalds , Andrew Morton , Greg KH , Rik van Riel , Alexey Kuznetsov , Andrey Savochkin , Kirill Korotaev , Andi Kleen , Benjamin Herrenschmidt , Jeff Garzik , Trond Myklebust , Jes Sorensen Subject: [RFC][PATCH 13/20] kthread: Update kthread to work with pspaces. References: From: ebiederm@xmission.com (Eric W. Biederman) Date: Mon, 06 Feb 2006 12:57:38 -0700 In-Reply-To: (Eric W. Biederman's message of "Mon, 06 Feb 2006 12:54:37 -0700") Message-ID: User-Agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1016 Lines: 40 Signed-off-by: Eric W. Biederman --- 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 #include #include +#include #include /* @@ -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/