Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758028Ab1FPNxz (ORCPT ); Thu, 16 Jun 2011 09:53:55 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39083 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755781Ab1FPNxw (ORCPT ); Thu, 16 Jun 2011 09:53:52 -0400 Date: Thu, 16 Jun 2011 15:51:14 +0200 From: Oleg Nesterov To: Srikar Dronamraju Cc: Peter Zijlstra , Ingo Molnar , Steven Rostedt , Linux-mm , Arnaldo Carvalho de Melo , Linus Torvalds , Ananth N Mavinakayanahalli , Hugh Dickins , Christoph Hellwig , Jonathan Corbet , Thomas Gleixner , Masami Hiramatsu , Andrew Morton , Jim Keniston , Roland McGrath , Andi Kleen , LKML Subject: Re: [PATCH v4 3.0-rc2-tip 4/22] 4: Uprobes: register/unregister probes. Message-ID: <20110616135114.GA22131@redhat.com> References: <20110607125804.28590.92092.sendpatchset@localhost6.localdomain6> <20110607125900.28590.16071.sendpatchset@localhost6.localdomain6> <1308159719.2171.57.camel@laptop> <20110616041137.GG4952@linux.vnet.ibm.com> <1308217582.15315.94.camel@twins> <20110616095412.GK4952@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110616095412.GK4952@linux.vnet.ibm.com> User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 907 Lines: 27 On 06/16, Srikar Dronamraju wrote: > > In which case, shouldnt traversing all the tasks of all siblings of > parent of mm->owner should provide us all the the tasks that have linked > to mm. Right? I don't think so. Even if the initial mm->ovner never exits (iow, mm->owner is never changed), the "deep" CLONE_VM child can be reparented to init if its parent exits. > Agree that we can bother about this a little later. Agreed. Oh. We should move ->mm from task_struct to signal_struct, but we need to change the code like get_task_mm(). And then instead of mm->owner we can have mm->processes list. Perhaps. This can be used by zap_threads() too. Oleg. -- 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/