Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2508079rwa; Mon, 22 Aug 2022 08:47:22 -0700 (PDT) X-Google-Smtp-Source: AA6agR4lCiPXkvPdHCX1H84QdR+AqBn2BaWJak/BCuSB6hLozCNJOWOIZtubNJgLea3wer0fagoK X-Received: by 2002:a05:6402:2206:b0:446:9bb7:a1c0 with SMTP id cq6-20020a056402220600b004469bb7a1c0mr6886130edb.344.1661183241642; Mon, 22 Aug 2022 08:47:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661183241; cv=none; d=google.com; s=arc-20160816; b=lnbJEyACOjfxc1MqrJNpwrxfHRI+SKVYKUMVHOMo7ygU/gS+WQ0fKQE1DVRhHAd6Xy sJc1LMpi/ZCaxiWyn4/W/7zjtVWz/9++5bZy5PxNjts8ksSTnUX8H24IMlXZE2zDNokd SP5txmkQ72uUWkkHIKunmvRMwDmqoV14zh5to6pxlSfPyyKI5Xkf+difzx1lILEuAb8E +l0S9z907vi/0NTD86u7yA/4ZIcH2G2Aoxucr7e6aCjJUZ7FMkSko4f7mqcBuuyLMWE/ ZAHYe5BroVdWmNN51Sb6a02+zBhpZrBxG9HXtFgUZ5GcLC6mOERQLEuI5m6XKluQj1Og 188g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zqT+vapO33dfH5RK6+b+4smufsoheg5AXIp4xVOHEZw=; b=WRp6YqjwTwSrlMgGAW6TH91udyIrojbOsj0T12tlKAvOeRq1Bi+E1ORuH7TmYP7YKI cnStKaASww2SKvXTZxrgpm3vTGdJgeh+BNqCM5/ua+e9YarF0b7JZtgWyq2RPf/LXrmj Gyf2NxZZrdVadOE6DWut3JT36DhmtYUla3uddpZ8rNhMAMGGxAXbGOmnd517ShYBHY9W j5LDvVAJexN3X9KlNsXk51Kk9asevubTGkbp9OgNlXeolbL9MqK9mQYA8kDmLHQwoqe1 WSLcHLtHHpiFg1Qo2aL+0GrllLI1bZyh+7UUCiElFeV6aUr7ZGz+Glemb3Pz0yhMgxMc /UrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=YTgD0QKF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g6-20020a17090669c600b0073d8659db5csi1975196ejs.966.2022.08.22.08.46.54; Mon, 22 Aug 2022 08:47:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=YTgD0QKF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235503AbiHVPoo (ORCPT + 99 others); Mon, 22 Aug 2022 11:44:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52614 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236890AbiHVPoU (ORCPT ); Mon, 22 Aug 2022 11:44:20 -0400 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44080167EA for ; Mon, 22 Aug 2022 08:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=zqT+vapO33dfH5RK6+b+4smufsoheg5AXIp4xVOHEZw=; b=YTgD0QKFHzMjlJ7OSo7AvZfA9k bcEXNOOqjYFGD1xXoikX1CpOKjmlfRRoOE5LZgkE5IDhmdy8Iw0D5QECPJ8GYQH6+iO3q1sK0qXPr qV1jS3rVfc8GY3uW+vYonyEpX0MgYA7Eg18rr6c32Kud5Z/aRBUHBf0l683CwxfpFqmogGOK5CheA ywHitgXOTSIsDyrPwWBHY70ZCHwtdmco1hr6773teAVE/YJAD8EEEzPARXS8GUDRUj7p6XEfSMdGG TtoV24HUxNf47IeIq7Vi4q8OkmI4hQU0H0hcJVQ0fkm0S+sI0U6i7JSYc786IeDKz3Y5DBF5ZqaCc gBcbHuRA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ9aA-00579Y-Rx; Mon, 22 Aug 2022 15:43:19 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 5D24B9804A3; Mon, 22 Aug 2022 17:43:18 +0200 (CEST) Date: Mon, 22 Aug 2022 17:43:18 +0200 From: Peter Zijlstra To: Ravi Bangoria Cc: acme@kernel.org, alexander.shishkin@linux.intel.com, jolsa@redhat.com, namhyung@kernel.org, songliubraving@fb.com, eranian@google.com, alexey.budankov@linux.intel.com, ak@linux.intel.com, mark.rutland@arm.com, megha.dey@intel.com, frederic@kernel.org, maddy@linux.ibm.com, irogers@google.com, kim.phillips@amd.com, linux-kernel@vger.kernel.org, santosh.shukla@amd.com Subject: Re: [RFC v2] perf: Rewrite core context handling Message-ID: References: <20220113134743.1292-1-ravi.bangoria@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 22, 2022 at 05:29:11PM +0200, Peter Zijlstra wrote: > On Tue, Aug 02, 2022 at 11:41:42AM +0530, Ravi Bangoria wrote: > > > > > pulling up the ctx->mutex makes things simpler, but also violates the > > > locking order vs exec_update_lock. > > > > > > Pull that lock up as well... > > > > I'm not able to apply this patch as is but I get the idea. Few > > questions below... > > I was just about to rebase the 'series' to current, let me do that and > get back to you on the specifics. https://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git/log/?h=perf/wip.rewrite I need to go make dinner, but I'll try and remember how it all was support to work later this evening when the loonies are in bed,