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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B42EBC369A4 for ; Thu, 10 Apr 2025 08:35:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aeujKxgg8yyOyQnj8SrAQIhlntySoXMcxf9FY0QfLJc=; b=vfiphOwKSSrkn+ VnYdOQB1Yr9GN4ZvgeyfH0CnOvwiyBYAXgh8LiOzLXb8vJHMnu+G8nSkXvHyrpBSDMWJgxyWOJtSY zdG7F0uoO01AnNWT39fZJiOSzF6EuIdC8H7WaWWFLHOr8eH3a6AcBAGduXtipktmubR259D0uQhIU RvIJVP6zBoFafqEhdIqJSZM9AHmgVm+j3U59z76IQS76V2dUvhmmzL83UIVdV9I5KCgaNo19ToRNG ZBG3cV+3E0CwIzWSZ4LgEY4VYUmJdzCnI+GfIXwAf0heGMSWSLhpZ4xM8wLl/h8SgXr3iW9E32S/9 St2sD1efNTKmDwA9haaA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1u2nNl-00000009lfd-1qHa; Thu, 10 Apr 2025 08:35:33 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1u2muB-00000009fU1-3Hxv; Thu, 10 Apr 2025 08:04:59 +0000 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=IxulY4YfJFvqSV0YcsQj0eRPgqF4sDaqNqzwMhtD+DE=; b=d4zbEXAZ3d/QRC8bB/J3SExnty QEX5mVTXHvr3hTke0gOWXdwujtWBsMo2SO9ZAcp+fejjIioku3evoFzJNDHQFBr8TpZ2Deg8TmOJH HXOgTQv24RyAQs4XcI8iC3uoPRUjvN3nETceXW5QHkxtJORwYrc0f7Y5vGtrH4fSTtdbtdKHBNydq XYY++T3RSc57LMajsKWy++nyiOzLKGxOXHeTTNljJFtjBpZpoaPpGIPJGZwI5qM2RtMooEhlNcCdb AorRjWui1N49jKz1r7D7uzAmJ5m5pTqlT3kO08GCw4jrjexs/Fq4/GpZOnRJoXUnSsSArSx/cwRkt jpwjaypw==; Received: from 77-249-17-252.cable.dynamic.v4.ziggo.nl ([77.249.17.252] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.98.1 #2 (Red Hat Linux)) id 1u2mu6-00000008mGw-3557; Thu, 10 Apr 2025 08:04:55 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 49F433003FF; Thu, 10 Apr 2025 10:04:54 +0200 (CEST) Date: Thu, 10 Apr 2025 10:04:54 +0200 From: Peter Zijlstra To: Maxim Levitsky Cc: kvm@vger.kernel.org, Alexander Potapenko , "H. Peter Anvin" , Suzuki K Poulose , kvm-riscv@lists.infradead.org, Oliver Upton , Dave Hansen , Jing Zhang , Waiman Long , x86@kernel.org, Kunkun Jiang , Boqun Feng , Anup Patel , Albert Ou , kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Zenghui Yu , Borislav Petkov , Alexandre Ghiti , Keisuke Nishimura , Sebastian Ott , Paolo Bonzini , Atish Patra , Paul Walmsley , Randy Dunlap , Will Deacon , Palmer Dabbelt , linux-riscv@lists.infradead.org, Marc Zyngier , linux-arm-kernel@lists.infradead.org, Joey Gouly , Ingo Molnar , Andre Przywara , Thomas Gleixner , Sean Christopherson , Catalin Marinas , Bjorn Helgaas Subject: Re: [PATCH v2 1/4] locking/mutex: implement mutex_trylock_nested Message-ID: <20250410080454.GW9833@noisy.programming.kicks-ass.net> References: <20250409014136.2816971-1-mlevitsk@redhat.com> <20250409014136.2816971-2-mlevitsk@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20250409014136.2816971-2-mlevitsk@redhat.com> X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Tue, Apr 08, 2025 at 09:41:33PM -0400, Maxim Levitsky wrote: > Allow to specify the lockdep subclass in mutex_trylock > instead of hardcoding it to 0. We disable a whole bunch of checks for trylock, simply because they do not wait, therefore they cannot deadlock. But I can't remember if they disable all the cases required to make subclasses completely redundant -- memory suggests they do, but I've not verified. Please expand this Changelog to include definite proof that subclasses make sense with trylock. _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv