Received: by 10.213.65.68 with SMTP id h4csp489764imn; Wed, 28 Mar 2018 07:23:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/QQ5q2CQiYFiassSLyM2UgdFD5eK4dDZbBF4aNj2DmDdW1rvYg9VSun7Ti2KHRp4w7fq3S X-Received: by 10.167.129.7 with SMTP id b7mr3211145pfi.122.1522247014575; Wed, 28 Mar 2018 07:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522247014; cv=none; d=google.com; s=arc-20160816; b=HvCfxGX3oubkDFP6/HtaHilzMO/fxGW1HAJrN+BTjLcXQPj+/Imjppk85M5caFPDNb dtg4teuW5K+M4aHao1jzIVsOaY1XAXLy80DfDzX3u8eVWahP7GmK5djpkPegi7S7W3x2 CLBSJZDsXaieN/gn1/BotpGGeZmmlE160P4W09lKJdMFF6KYTwWM5iE/WNwmKoSwb85B BWYEVcuKVPQwf+HFGPfQOtEZBB05hkEB984OW3bKEMYzLNEdlVxpOXUEuUzNJ1Ia1zyi yotDzpOjmwLpwGdu5RAVJYsUQIZKfZhVVYYY3vU4DchAucBj7/RDpkXcfZxI877e9sVY AxAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=eXV+Rdi+Ah4rVgXzvd8uIsodQaH7w5Lyc4UoJLSzJ64=; b=HybuDvYxzjSmr9DZVTLDI7MEibf2yjlkipP7V6j6/TeHbghklkOTEdFtqR2vFDRwbl 1fUNK2t+meuT7hfrf17qEY4n+Xq1PttfD1F8/B4D8B8eH498GOmWb6tgvzybUoz3McNM NOOgDhglByC1TZXhY4b9A/7CjCup/hssXPHBVBmB46SJNrtDjhPGS30QLjehL/I7YQjP DMzH17rmT1YhVJw205o0AQbLDga1S38CSRVvAR+acaHhNDp8xGnWuAFuVl0PRMRzX7+t qTaJhmhRJ5I9tavV89Pf81iTITmzTRSNVtQK+Y36LoUFSWuGJjwM7dsJOSdKVyiLh2ct 0vPA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 99-v6si3739746plc.601.2018.03.28.07.23.20; Wed, 28 Mar 2018 07:23:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753630AbeC1OVf (ORCPT + 99 others); Wed, 28 Mar 2018 10:21:35 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:37110 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750820AbeC1OVd (ORCPT ); Wed, 28 Mar 2018 10:21:33 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 506127CBBA; Wed, 28 Mar 2018 14:21:33 +0000 (UTC) Received: from llong.com (dhcp-17-164.bos.redhat.com [10.18.17.164]) by smtp.corp.redhat.com (Postfix) with ESMTP id 043682024CA2; Wed, 28 Mar 2018 14:21:32 +0000 (UTC) From: Waiman Long To: Ingo Molnar , Peter Zijlstra , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, Davidlohr Bueso , Waiman Long Subject: [PATCH v4 0/2] locking/rwsem: Add DEBUG_RWSEMS Date: Wed, 28 Mar 2018 10:20:50 -0400 Message-Id: <1522246852-17501-1-git-send-email-longman@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 28 Mar 2018 14:21:33 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 28 Mar 2018 14:21:33 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'longman@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org v4: - Auto select DEBUG_RWSEMS & DEBUG_WW_MUTEX_SLOWPATH if PROVE_LOCKING - Modify patch 2 to do a restructuring of the lock debugging menu. v3: - Add a new patch which adds a master LOCK_DEBUGGING option to turn on all lock debugging. v2: - Fix typo in up_read_non_owner(). This patchset enhances lock debugging by adding rwsem lock/unlock mismatches checking and restructure the lock debugging menu to make it easier to select options that are likely to be most frequently used. Waiman Long (2): locking/rwsem: Add DEBUG_RWSEMS to look for lock/unlock mismatches locking/debug: Restructure the lock debugging menu kernel/locking/rwsem.c | 4 ++ kernel/locking/rwsem.h | 8 ++- lib/Kconfig.debug | 150 +++++++++++++++++++++++++++---------------------- 3 files changed, 93 insertions(+), 69 deletions(-) -- 1.8.3.1