From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932083AbWFULeF (ORCPT ); Wed, 21 Jun 2006 07:34:05 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751505AbWFULeF (ORCPT ); Wed, 21 Jun 2006 07:34:05 -0400 Received: from omta05ps.mx.bigpond.com ([144.140.83.195]:17600 "EHLO omta05ps.mx.bigpond.com") by vger.kernel.org with ESMTP id S1751332AbWFULeE (ORCPT ); Wed, 21 Jun 2006 07:34:04 -0400 Message-ID: <44992EAA.6060805@bigpond.net.au> Date: Wed, 21 Jun 2006 21:34:02 +1000 From: Peter Williams User-Agent: Thunderbird 1.5.0.4 (X11/20060614) MIME-Version: 1.0 To: Matt Helsley CC: Andrew Morton , Linux-Kernel , Jes Sorensen , LSE-Tech , Chandra S Seetharaman , Alan Stern , John T Kohl , Balbir Singh , Shailabh Nagar Subject: Re: [PATCH 00/11] Task watchers: Introduction References: <1150242721.21787.138.camel@stark> <4498DC23.2010400@bigpond.net.au> <1150876292.21787.911.camel@stark> In-Reply-To: <1150876292.21787.911.camel@stark> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH PLAIN at omta05ps.mx.bigpond.com from [147.10.133.38] using ID pwil3058@bigpond.net.au at Wed, 21 Jun 2006 11:34:02 +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Matt Helsley wrote: > On Wed, 2006-06-21 at 15:41 +1000, Peter Williams wrote: >> On a related note, I can't see where the new task's notify field gets >> initialized during fork. > > It's initialized in kernel/sys.c:notify_per_task_watchers(), which calls > RAW_INIT_NOTIFIER_HEAD(&task->notify) in response to WATCH_TASK_INIT. I think that's too late. It needs to be done at the start of notify_watchers() before any other watchers are called for the new task. Peter -- Peter Williams pwil3058@bigpond.net.au "Learning, n. The kind of ignorance distinguishing the studious." -- Ambrose Bierce