From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Date: Sun, 29 Feb 2004 05:27:42 +0000 Subject: Re: Oops in pdflush Message-Id: <20040228212742.60041983.akpm@osdl.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org Keith Owens wrote: > > On Sat, 28 Feb 2004 02:23:23 -0800, > Andrew Morton wrote: > >We should use the new kthread infrastructure rather than open-coding it. > >It delegates thread startup to keventd and should thus avoid the stack > >windup. > > Convert pdflush to kthread to avoid stack windup. Thanks Keith. Tricky patch ;) > Rusty, does pdflush() still need to call daemonize() or does kthread > make that redundant? It's redundant - threads launched by kthread have a genuine kernel thread as a parent and hence do not need to perform all that "disassociate me from my userspace parent" stuff.