Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1982124ybh; Fri, 13 Mar 2020 10:47:53 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt8pc+J/GNw56TCK1wl7RnAhIaRR2TJPB6LdHYMqVDStdbbva0V2zlD2gJ2wbPSiLTTAjCV X-Received: by 2002:a9d:6186:: with SMTP id g6mr11859445otk.236.1584121673318; Fri, 13 Mar 2020 10:47:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584121673; cv=none; d=google.com; s=arc-20160816; b=a+usxSdCVD2oHZnrskgNbeP8nx1tYyA9ltzHK6brs48PXM3yYzmdjmozLX54fsoR0q XQ1vYPWsqR4vwOXmhEqD3nbjZlOm3pjjI/LBRG9vWDiTG178WjPns2GqqdH2pOlOWpfq Qkc8pMqVNUGXLjPT543AC6TLVZlXpxd3ygItj3yxscidAIzyjM34IRiSOVUVBqe2h4J9 71I+wpISLhG5THe+q6uVMjLO9BWVnUAr53+8jU+oVIMddSg1/G3JYv3o6buvkPLMu2zm djRyUntJbpD5e7NvgikKTHJwoN396cYwUqNuFcFVStNs/IHcCQqG3gFv4xEPToP/pBSI h8uQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=yRuMnll0CX5A2knIe22TWjwM9avlzaXo8v1gA3fe9mM=; b=iliFyV176pVSYDliYano+UrQJMvL5PvkJmWNXLLqv4rfB/iwqJnm1lWO2t/HrJSroq MaN+a7/YDz7ffd71KcjxDXGmdXFQgmeM2ZVkJjRrSJOXrtsWH/PhVRYycO6uO/ZCBD0O 0M/SqAmEOib2lT+vmu0+RWpre/AJMhXk/ei+lg7/U6ShQZl5x/3bWLldN8om4yCuuqPZ 5BUZPfaHU6ilnJpLbEDadA77GEUaRSBofobPKK5D3ZdfoWfoZswvlBe0Klz7BNNpgr7o bHEBNzlUmdiJD+bQpKKCJF49WGjEt54TZFpacHR6zvs0XZioqRe2FWEv7QIYYT6H9nGn iwgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v137si4569110oif.170.2020.03.13.10.47.34; Fri, 13 Mar 2020 10:47:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726866AbgCMRrP (ORCPT + 99 others); Fri, 13 Mar 2020 13:47:15 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:47697 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbgCMRrO (ORCPT ); Fri, 13 Mar 2020 13:47:14 -0400 Received: from localhost ([127.0.0.1] helo=flow.W.breakpoint.cc) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1jCoOt-00017r-DB; Fri, 13 Mar 2020 18:47:11 +0100 From: Sebastian Andrzej Siewior To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , "Paul E . McKenney" , Joel Fernandes , Steven Rostedt , Linus Torvalds , Thomas Gleixner Subject: [PATCH 0/9] Lock ordering documentation and annotation for lockdep Date: Fri, 13 Mar 2020 18:46:52 +0100 Message-Id: <20200313174701.148376-1-bigeasy@linutronix.de> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The first patch introduces the long asked locking documentation regarding spinlock_t vs raw_spinlock_t (and other locking primitives). Followed by updates to obey the rules including a change to completions to use struct swait_queue_head instead of wait_queue_head_t. It ends with lockdep updates to recognize the "bad" lock nesting. This new lockdep feature is activated by CONFIG_PROVE_RAW_LOCK_NESTING. Once enabled it will report for instance printk, the memory allocator or the workqueue implementation. This is known and it is worked on. Sebastian