From patchwork Mon Nov 19 18:55:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Waiman Long X-Patchwork-Id: 10689313 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 71E0313AD for ; Mon, 19 Nov 2018 18:57:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 644352A47A for ; Mon, 19 Nov 2018 18:57:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 583F12A453; Mon, 19 Nov 2018 18:57:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F244D2A46A for ; Mon, 19 Nov 2018 18:57:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id F17F26B1BE9; Mon, 19 Nov 2018 13:57:01 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id EC91A6B1BEA; Mon, 19 Nov 2018 13:57:01 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D6EE96B1BEB; Mon, 19 Nov 2018 13:57:01 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by kanga.kvack.org (Postfix) with ESMTP id A10756B1BE9 for ; Mon, 19 Nov 2018 13:57:01 -0500 (EST) Received: by mail-qk1-f198.google.com with SMTP id d196so71046734qkb.6 for ; Mon, 19 Nov 2018 10:57:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:in-reply-to:references; bh=WiW/qIP5xtsgvsYCncGrXAjAG3FpozQuBKj1j0D5XBM=; b=nkgdVt2FJfkxm78gBFObgFAuvZxEtqZJpZ26DU1LZsaC6TRte3s0+e0oEFuF8lSSqG firdbsTmdhfmLh/FNzutdx8P3B5Hr00PmEPvUjY1sCVmzQ4tA7krymmH48G+sSwni9oS pN0ZYAwdPckX/PBbWQi8vu8nB1zZUsQb25p5+0TplOxGTaMlKmy6xGisgf4/mauK+op6 I1wtIGZDuGTyNYNPupJhWTUP1QCgDPiZ9pzptQVC72NLMBy58Fvpoc9jN20skEwUQxRi cCAe43qTdgSHZj4hKrWFVCzVkz18UT7dDqw8MUwC3V0qscEewQAwbGm+ioJMMy4/5Nvu wSEw== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of longman@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=longman@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com X-Gm-Message-State: AGRZ1gLbTeJOX+vMunw76ZvQI+wTvtSJvty8IKDFxywjJ3jsy2oCeKom GIl9JUQKGicaB9VNIH58TVzVRdn1XJ/mcX/j/OdcuPnYHWZ6OjoH3NGrqx3+WtmrpAEFK7CajEi Iy8GcE6yWYjdEMsp+L384PY6b/w8jB7ulxminF78m0Tn5wtIrXe+AQZZOfCam0dTSqg== X-Received: by 2002:a37:116a:: with SMTP id b103mr20843473qkh.77.1542653821386; Mon, 19 Nov 2018 10:57:01 -0800 (PST) X-Google-Smtp-Source: AJdET5fbpk4ubLCwBj148HoXX3erOLPNxSbRGKDOwK/pGPqV3pLjwTh4AzhVIE7C22Rphr0yp4pN X-Received: by 2002:a37:116a:: with SMTP id b103mr20843447qkh.77.1542653820641; Mon, 19 Nov 2018 10:57:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542653820; cv=none; d=google.com; s=arc-20160816; b=ZvrOUygrWpI3FDuN2D6/ga/p2qyRKZSUiIC/F7+I8mMHU3M14CLBduMKsD/uC96dmP 2lFwewIOf5AfN2+zQGSIXikFLhfNqwxgTFAoA06vxeYz9Q5W7QuAHqig4jailL+NBjEu MoBVpaA+AHmSQdViu2JWQg1r8Fnd0S1Q3Us9tmf+GeAbXxgRAAEvhOd78o+AzRnqTIjW uv0DiXLI79G4pQ1lKm2rCyRRV7aV6tmY0FeVHHcaBY96cwxsKXlrUnKeqpn3J6aZ2jnl y50TV7VNKfvKp6BMi70fMlnCa6j44YPD+2JAbkRvLHPy1jYOO5TAsVRYze6+7igCjlJK WaiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:cc:to:from; bh=WiW/qIP5xtsgvsYCncGrXAjAG3FpozQuBKj1j0D5XBM=; b=y3KlkLVORtLwObUnibmMLdnBUNjRTpSKf2T1370IfzgnfMmK36abT9YIdmALk6DACM 5TWnd+IWiO5XCs07YkZkg4L6LTU3OaeNN/AggI7kglXSK4Lrdm37HlqluPhHIU5rAqQ9 1a1IBoAr9i6G/PEgwZz2HyKvXFQQf70a/c6FH+30nT+Tt1HxFQboieNrgPRuxp1myIxz goVG52wVk+cCDP1kzqCD5CjHUQksx4mgpFQzNP8KOFWs3ptEdHDdfQk08nE+iZSHsIAL CeMrvPsNZMdXr23xJ8IIlSJ+rkJhMfP7oJZ5ZRfGoAbmctifjrHC89cY/Nt1VXrQXlpX kCPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of longman@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=longman@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id g24si6557809qvb.43.2018.11.19.10.57.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 10:57:00 -0800 (PST) Received-SPF: pass (google.com: domain of longman@redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; Authentication-Results: mx.google.com; spf=pass (google.com: domain of longman@redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=longman@redhat.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id AA61D30842AC; Mon, 19 Nov 2018 18:56:59 +0000 (UTC) Received: from llong.com (dhcp-17-55.bos.redhat.com [10.18.17.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3446E6090A; Mon, 19 Nov 2018 18:56:58 +0000 (UTC) From: Waiman Long To: Peter Zijlstra , Ingo Molnar , Will Deacon , Thomas Gleixner Cc: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Petr Mladek , Sergey Senozhatsky , Andrey Ryabinin , Tejun Heo , Andrew Morton , Waiman Long Subject: [PATCH v2 06/17] debugobjects: Mark pool_lock as a terminal lock Date: Mon, 19 Nov 2018 13:55:15 -0500 Message-Id: <1542653726-5655-7-git-send-email-longman@redhat.com> In-Reply-To: <1542653726-5655-1-git-send-email-longman@redhat.com> References: <1542653726-5655-1-git-send-email-longman@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.40]); Mon, 19 Nov 2018 18:56:59 +0000 (UTC) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP By marking the internal pool_lock as a terminal lock, lockdep will be able to skip full validation to improve locking performance. Signed-off-by: Waiman Long --- lib/debugobjects.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/debugobjects.c b/lib/debugobjects.c index 70935ed..403dd95 100644 --- a/lib/debugobjects.c +++ b/lib/debugobjects.c @@ -39,7 +39,7 @@ struct debug_bucket { static struct debug_obj obj_static_pool[ODEBUG_POOL_SIZE] __initdata; -static DEFINE_RAW_SPINLOCK(pool_lock); +static DEFINE_RAW_TERMINAL_SPINLOCK(pool_lock); static HLIST_HEAD(obj_pool); static HLIST_HEAD(obj_to_free);