From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id 22BE86B0096 for ; Thu, 24 Nov 2011 04:51:23 -0500 (EST) Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 24 Nov 2011 04:51:21 -0500 Received: from d01av04.pok.ibm.com (d01av04.pok.ibm.com [9.56.224.64]) by d01relay02.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id pAO9ovKA430036 for ; Thu, 24 Nov 2011 04:50:57 -0500 Received: from d01av04.pok.ibm.com (loopback [127.0.0.1]) by d01av04.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id pAO9otOf012670 for ; Thu, 24 Nov 2011 04:50:56 -0500 Date: Thu, 24 Nov 2011 15:19:56 +0530 From: Srikar Dronamraju Subject: Re: Fwd: uprobes: register/unregister probes. Message-ID: <20111124094956.GC28065@linux.vnet.ibm.com> Reply-To: Srikar Dronamraju References: <603b0079-5f54-4299-9a9a-a5e237ccca73@l23g2000pro.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <603b0079-5f54-4299-9a9a-a5e237ccca73@l23g2000pro.googlegroups.com> Sender: owner-linux-mm@kvack.org List-ID: To: Peter Zijlstra , Linus Torvalds Cc: Oleg Nesterov , Andrew Morton , LKML , Linux-mm , Ingo Molnar , Andi Kleen , Christoph Hellwig , Steven Rostedt , Roland McGrath , Thomas Gleixner , Masami Hiramatsu , Arnaldo Carvalho de Melo , Anton Arapov , Ananth N Mavinakayanahalli , Jim Keniston , tulasidhard@gmail.com > > + > > + mutex_unlock(uprobes_hash(inode)); > > + put_uprobe(uprobe); > > + > > +reg_out: > > + iput(inode); > > + return ret; > > +} > > So if this function returns an error the caller is responsible for > cleaning up consumer, otherwise we take responsibility. The caller is always responsible to cleanup the consumer. The only field we touch in the consumer is the next; thats because we use to link up the consumers. -- Thanks and Regards Srikar -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org