Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp2503811rwa; Mon, 22 Aug 2022 08:43:04 -0700 (PDT) X-Google-Smtp-Source: AA6agR7AM9NI+o2yLVQLs63LfoW/t2pASVXGlUheB3q5I+lOdMOQyPxS154qFXc0q3gFWMalq5zs X-Received: by 2002:a05:6a00:2446:b0:528:5f22:5b6f with SMTP id d6-20020a056a00244600b005285f225b6fmr21706229pfj.73.1661182984191; Mon, 22 Aug 2022 08:43:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661182984; cv=none; d=google.com; s=arc-20160816; b=R05K5UcBHhNsYvymIyzdCADqjd6uTQsaEDhFlcwVb5OufPOypa48b0W2RSLeWgV94s 6RoV0QRNNJS7VxAwvWUiekroAxl9J49lCkmYyIakWKmSkdGkVkbdMFavSl/RTJ88Q6Dy Ta9TVwV0j4mwQfIdSsrYPdqmgB9kI1tUijLcM5KuDPjczwNxH3k0kMotq95tNX6i6XhF j8yo3k83dCvWBTs2atgDpW5xMEZltnsUYXT6bhpikBM2nRhqBCbl71YhZHfdqU4VC731 1d8RLpyy7muRbBnLJbfGITQ2J+etNlkwC50Uwoj6hZ9+u/gaaepUqFpAcztrdCMFlByf iETA== 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=L0RSP2WRBejZlqTDBjBr4XbEOe0Tr9fW4Xf6+0aI1cQ=; b=UmfQjmlNoDL/w+YXfHRJj5S2UCH+y37MrkzPVph4vJMx/uX3lDqKytQ76qSox8dEdN g1v4267Uh0e/rJdLVulWGUErhpuYa+YEmf1PIVVq2uE06Qr3Bz05jg67AC2c6RDUGuHK XXV0UOQrUZLciLsooU+lUDIySM2vlnMAA5JwThSih0Mftkj2hxnfc5ONW1J/1sbdI27d BFtj8ICHIGJZGyWZMZs0hpJKBIJTXGtv0yc8Fwu35KfQa6Po0BH/lwl7NN61ldjPsKmu 9PGpdtWHBBYzae+sYoHwe32KfUiWxlSJ0gNVLpAljMYDBz+nUR0ou/BzpDaW4IQGIB+s lw4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=aN0y209H; 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 u38-20020a634566000000b004157aa8707csi13456677pgk.110.2022.08.22.08.42.52; Mon, 22 Aug 2022 08:43:04 -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=casper.20170209 header.b=aN0y209H; 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 S235609AbiHVP3h (ORCPT + 99 others); Mon, 22 Aug 2022 11:29:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236575AbiHVP32 (ORCPT ); Mon, 22 Aug 2022 11:29:28 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 095B0E02B for ; Mon, 22 Aug 2022 08:29:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; 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=L0RSP2WRBejZlqTDBjBr4XbEOe0Tr9fW4Xf6+0aI1cQ=; b=aN0y209Hwl1TQUGfVba0RdJXKB RTqPxpt23L+vrIHkuGXeSNTDPoBxHS0oLwBQBax5cU/XhCMMVoeZG52QgXwEg9uVvrOw6t3ERDdlP Dy2vEmbBl1lJn04wnHhK56uyngRMmN+k3gqhx28BjDZi4NV7yGCNWMYq/Iw8Y8Sa5yfxmlxNe2Uw7 B7bW8QNK1xPYxavsBp3YGxeAhhbzUCILN64wNnvzkSLr+oItcyRdAwtcQX9pXn/jk713Z2hQONrDk iYZgmYoY2gK3WPfKY/Td6uJ2MRDW6gUuZYDrB93vQxjveOdAXpcaa+kbbxozAEDlC6Kkb4D/8fjOq N6otzbjQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=worktop.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oQ9MW-00EP51-5B; Mon, 22 Aug 2022 15:29:12 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 073419804A3; Mon, 22 Aug 2022 17:29:11 +0200 (CEST) Date: Mon, 22 Aug 2022 17:29:10 +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 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.