Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755005AbXKZTYq (ORCPT ); Mon, 26 Nov 2007 14:24:46 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753250AbXKZTYj (ORCPT ); Mon, 26 Nov 2007 14:24:39 -0500 Received: from ebiederm.dsl.xmission.com ([166.70.28.69]:50194 "EHLO ebiederm.dsl.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753160AbXKZTYi (ORCPT ); Mon, 26 Nov 2007 14:24:38 -0500 From: ebiederm@xmission.com (Eric W. Biederman) To: Oleg Nesterov Cc: Andrew Morton , Pavel Emelyanov , linux-kernel@vger.kernel.org Subject: Re: [PATCH? 3/3] move daemonized kernel threads into the swapper's session References: <20071126142556.GA16531@tv-sign.ru> Date: Mon, 26 Nov 2007 12:23:26 -0700 In-Reply-To: (Eric W. Biederman's message of "Mon, 26 Nov 2007 11:57:36 -0700") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) 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: 772 Lines: 22 ebiederm@xmission.com (Eric W. Biederman) writes: > Hmm. I wonder if we could ensure kernel_thread always > returns a global pid_t, and then reallocate the struct > pid for the task we have just daemonized so that it only > has a single pid in the init_pid_ns. Well we can't reallocate the struct pid, if anyone was using it we would have problems, but we can certainly remove all pid_t values except for those in the init_pid_ns. We definitely have some serious issues with kernel_thread and signal sending though. Eric - 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/