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 07C6EC197A0 for ; Mon, 20 Nov 2023 11:52:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232627AbjKTLww (ORCPT ); Mon, 20 Nov 2023 06:52:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232566AbjKTLwv (ORCPT ); Mon, 20 Nov 2023 06:52:51 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44ACDA2; Mon, 20 Nov 2023 03:52:48 -0800 (PST) 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=5XdCuoj3ZWv7tIC1R687J3jzogBO9cX6nsxcKPOxK7E=; b=Qyf3VtSwPzdruBsdkjs+P+Gbr6 /YnNDcgwfR5pdPyUaU95uhBXYLlQobQrJ3FBxJmoceFt5RbLkldk8K0dl/yWiHmxYJBD4vhj3mhnu wPOSz2Hev+/OK6E9yErJyR8jsbEBAPWnhOa8b5gnpYhOqKfsMeykKnJ2qg4l4iKyk+lhZw7ipxtU7 O3O89hDBKylgV24gIYDGpuFVQPQUzo7IZSiQ/SjF0QR4vXJ80vNGPj52LNF1/yX1KL4+CQrAOb8rm nYTGGcSARlThXoFVqxUMA4dQRPRUE/mhqfubjEH+x1r0hiXX+fHVrjftmTSE2VzGggsyteypPYCzd ilNQQjaA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1r52pN-004RcP-JF; Mon, 20 Nov 2023 11:52:33 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 3F86D300419; Mon, 20 Nov 2023 12:52:33 +0100 (CET) Date: Mon, 20 Nov 2023 12:52:33 +0100 From: Peter Zijlstra To: "Matthew Wilcox (Oracle)" Cc: Ingo Molnar , Will Deacon , Waiman Long , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Chandan Babu R , "Darrick J . Wong" , linux-xfs@vger.kernel.org, Mateusz Guzik Subject: Re: [PATCH v4 1/4] locking: Add rwsem_assert_held() and rwsem_assert_held_write() Message-ID: <20231120115233.GT8262@noisy.programming.kicks-ass.net> References: <20231117145142.2378800-1-willy@infradead.org> <20231117145142.2378800-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231117145142.2378800-2-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-xfs@vger.kernel.org On Fri, Nov 17, 2023 at 02:51:39PM +0000, Matthew Wilcox (Oracle) wrote: > Modelled after lockdep_assert_held() and lockdep_assert_held_write(), > but are always active, even when lockdep is disabled. Of course, they > don't test that _this_ thread is the owner, but it's sufficient to catch > many bugs and doesn't incur the same performance penalty as lockdep. > > Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Peter Zijlstra (Intel)