From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7093FC4167B for ; Mon, 27 Nov 2023 21:53:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233260AbjK0VxR (ORCPT ); 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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