Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp3417692rdh; Mon, 27 Nov 2023 13:53:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4tkW5kJeZnLwEwzw9o+3sB2GOyDCrUSI1Si9HRmr3Dl/O9jq2puNR9B+GF+UMvOmVyskH X-Received: by 2002:a17:90b:1c8b:b0:27c:f309:f381 with SMTP id oo11-20020a17090b1c8b00b0027cf309f381mr13577315pjb.6.1701122013039; Mon, 27 Nov 2023 13:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701122013; cv=none; d=google.com; s=arc-20160816; b=yhZ1YYZeRQF/F2kE2sviul6dd4EHS+Lg0GvsDsYLxY4KV3TGBGjKk2np5+qWSO3Y37 /bRRbM9fZW4G506jdqkiTrxzNjeHYc4jU6UfqS5wDMo2zBizsfdQysAGESylHxQ+xi5l 5OF6IzZlYZHh+Bb9N5Cq3vSnpu/pOPmqg6Vo+hnMGIghy15MQHnuR7Ow+zUY8YKux3jD z2St78ibiZ0nKU2lkprSl2ip8uGSZpnuB46/p/7C0G++FmPO/hp3oImlWIkei8WCP7x1 +E3/Kg+q2x93pPGkFn4scKtD/Qhtsh3x+YzL86IO6sFy4adT90jemJ+gLu7axSoas4cS Xzrg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jOvQXcOVVyWlqT6kOX96hhCFD6cr6YSiUxuP251Rk0Y=; fh=7D9kqJ0DA7JaCyv/BedpKE+7xEW6j/c+AC0HjbKwgFk=; b=RZ9iMvLOaZnk3qZlNYVG0JMzyh5uHzUiVBnbVx//5u+8Kxf/lyh9jPNBBUpO3glvmG 80QZy3E5PfA77jDanUzj1K43qltKR011l2mqUnZ317KG7N5QL0UTs9CChhjb+MJuXVGJ JV/jAOSxOvWz+3X66woCxpjT+rEl6Der7uo8vVF9mJ2Y2fGAzB5dK2LNaceQMIISwI2Q ArYBwl6dyJQtwNR1o2YOafOx+O/xU16nfplHjH+lF42LNSqb5crgC7NIqGRMTWWzlG3O CUuZ90ch4X/UoEecu87tsm+9VLlkgsGag4/famYd5B1kru9DFw8/goUvmm/lGCAa/b8N IJLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OUvpcyLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id u18-20020a170902e81200b001c62cfff795si52287plg.429.2023.11.27.13.53.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Nov 2023 13:53:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OUvpcyLG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id CB0F28068985; Mon, 27 Nov 2023 13:53:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232203AbjK0VxR (ORCPT + 99 others); Mon, 27 Nov 2023 16:53:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229527AbjK0VxP (ORCPT ); Mon, 27 Nov 2023 16:53:15 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D788BD for ; Mon, 27 Nov 2023 13:53:22 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08F98C433C7; Mon, 27 Nov 2023 21:53:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1701122002; bh=HeDiF2jwasV0GP+dtz+9Y1Dd+DYvHNFxhjLYvyamAFA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OUvpcyLGrzjY+THGjy5pypahwuW47YkS6ybPWEQZEoIlIF1NahoVSiF5udEasg+4x ItrolP9+i5SKZUXjFtqm8o9iXMTM9rpXjqId1ZHu4o5FLXulZebxzb9Ut0/1q+ADP8 hoNQPwBqj0qapVVahubDIoXd8zAerxRT7jvKeoOKAsgYD76EAUATrcmKyXZndsxX24 eKF/PHLeffa+eM4jKKveodshh3xHGa02xJWcI2bp8hE9r6UBDjzye0iL5c2xvWGOj0 z2NOQd+2gkMTgqnrXZTJQKLMhHUgaHoztyOHlfMeA713T/Gkjbg8QM/1pAC8knQO2q WvSPXtuSudmwg== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 3929D40094; Mon, 27 Nov 2023 18:53:19 -0300 (-03) Date: Mon, 27 Nov 2023 18:53:19 -0300 From: Arnaldo Carvalho de Melo To: Namhyung Kim Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Nick Terrell , Kan Liang , Andi Kleen , Kajol Jain , Athira Rajeev , Huacai Chen , Masami Hiramatsu , Vincent Whitchurch , "Steinar H. Gunderson" , Liam Howlett , Miguel Ojeda , Colin Ian King , Dmitrii Dolgov <9erthalion6@gmail.com>, Yang Jihong , Ming Wang , James Clark , K Prateek Nayak , Sean Christopherson , Leo Yan , Ravi Bangoria , German Gomez , Changbin Du , Paolo Bonzini , Li Dong , Sandipan Das , liuwenyu , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v4 01/53] perf comm: Use regular mutex Message-ID: References: <20231102175735.2272696-1-irogers@google.com> <20231102175735.2272696-2-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 27 Nov 2023 13:53:31 -0800 (PST) Em Sun, Nov 05, 2023 at 09:31:47AM -0800, Namhyung Kim escreveu: > Hi Ian, > > On Thu, Nov 2, 2023 at 10:58 AM Ian Rogers wrote: > > > > The rwsem is only after used for writing so switch to a mutex that has > > better error checking. > > Hmm.. ok. It doesn't make sense to use rwsem without readers. Well, the only reader is a findnew method, that will primarily read, but possibly write if it doesn't find it there, so converting to a regular mutex seems sensible. - Arnaldo > > Fixes: 7a8f349e9d14 ("perf rwsem: Add debug mode that uses a mutex") > > But I'm not sure this is a fix. Other than that, Yeah, agreed, will remove the fixes. > > Signed-off-by: Ian Rogers > > Acked-by: Namhyung Kim Thanks, - Arnaldo