From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757318AbcAONFz (ORCPT ); Fri, 15 Jan 2016 08:05:55 -0500 Received: from mga03.intel.com ([134.134.136.65]:59932 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756881AbcAONFh (ORCPT ); Fri, 15 Jan 2016 08:05:37 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,299,1449561600"; d="scan'208";a="861143338" From: Alexander Shishkin To: Peter Zijlstra Cc: Ingo Molnar , linux-kernel@vger.kernel.org, vince@deater.net, eranian@google.com, Arnaldo Carvalho de Melo Subject: Re: [PATCH] perf: Cleanup user's child events In-Reply-To: <20160115125453.GK6357@twins.programming.kicks-ass.net> References: <1452856935-364-1-git-send-email-alexander.shishkin@linux.intel.com> <20160115125453.GK6357@twins.programming.kicks-ass.net> User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1 (x86_64-pc-linux-gnu) Date: Fri, 15 Jan 2016 15:05:33 +0200 Message-ID: <87lh7rvvqa.fsf@ashishki-desk.ger.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Peter Zijlstra writes: > On Fri, Jan 15, 2016 at 01:22:15PM +0200, Alexander Shishkin wrote: >> Events are leaking in the following scenario: user creates an event for >> task A, task A forks into B (producing a child event), user closes the >> original event. Both original user's event and its child will remain for >> as long as task B is around. In other words, we don't clean up children >> when we try to release the parent. > > The orphan stuff should clear those up, no? Not if they don't schedule after the parent's gone. Regards, -- Alex