Message ID | 1542653726-5655-15-git-send-email-longman@redhat.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 CB7E414E2 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 19 Nov 2018 18:57:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC24C2A465 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 19 Nov 2018 18:57:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AADB52A475; Mon, 19 Nov 2018 18:57:53 +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 37CFB2A46D for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 19 Nov 2018 18:57:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C0ACC6B1BF4; Mon, 19 Nov 2018 13:57:45 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id B6C696B1BF5; Mon, 19 Nov 2018 13:57:45 -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 A09E96B1BF6; Mon, 19 Nov 2018 13:57:45 -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 7568C6B1BF4 for <linux-mm@kvack.org>; Mon, 19 Nov 2018 13:57:45 -0500 (EST) Received: by mail-qk1-f198.google.com with SMTP id y83so70181133qka.7 for <linux-mm@kvack.org>; Mon, 19 Nov 2018 10:57:45 -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=gBoHeDukKRC914ZDMXFLqVWWJNRPsvA+oZ6Eqk+XrZ4=; b=bLoD9H37DJDkE09XiBR8xfqAbjfXE6xwVuOcVlprtXSlvXPLQnUvyXtnvReyXcysPA F6to+tDq9dnE7cP2yNcGqMqs/DfBJP2Jy7Mzmmk8+lOaVgpFIz1JTNGyAR/wZF0GFm7y BaJ1dyFlB4ZIE0tkwZzV+yYkdcSvnd7NDHI0sY48q7IDMFWWHgu1jOfZoGdLS+q5oMMo sO1FFfRaGVT/GFbbadhAzOXAM7pNkfISmzfDQgxmZv5DJ9utG5nywolEA9Z6vbItIoGH fWM3NzYjP20O9dKhNsWJr35GIDRlZhTDyMH3HEOrqJ7jku5ffbrLDjluIHXYs8JQUMQV jWvA== 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: AGRZ1gLLJKcYrK1riGElo6hihpUtyo6CD80tsSvm5Z+pHedakx7arFOI AyLMsfN+mOAciTzTXJ85DLHRGmDEUP73krDL7U69evhjaBoD5K7hRYVIdrRNMFaioxKzVTONl0b NApJ8VLTByhalYb7lwmTFbkxtM8xwqfmJotQx22f+Q+0b5nPgZ9ctv+zo0kAjklMk9g== X-Received: by 2002:a0c:e486:: with SMTP id n6mr23100718qvl.210.1542653865259; Mon, 19 Nov 2018 10:57:45 -0800 (PST) X-Google-Smtp-Source: AJdET5dLg48+WGT9fH4A1Mduv03H0oojaH/QKhS+5314XUtsbDSG1SxfLanqtqeHr8b/KJ9idml2 X-Received: by 2002:a0c:e486:: with SMTP id n6mr23100702qvl.210.1542653864496; Mon, 19 Nov 2018 10:57:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542653864; cv=none; d=google.com; s=arc-20160816; b=cA8eVjh6t/nlxe8uOwJWJDq+GnH7Sxr8/WI0erIZZEt5XbVG6e2R2tDFxtJrDwILTU gm7ud0g5B8v8JlH5ffrv0DGG+kScWWN4IEy6BPSwZvSq2Mq4XE3/YRcBLt5GMm/Q/bLx 3/vZV2OYH+DnbBlIJPKGuYytVPAAmN9fwfrPmIYfMWOYY1ZWhYrzjFQAKtbfJr3JWl08 hiLLXJ5XTdzHa5t3f2avfrx8HNvSiJt9L2Q92OmQjGgv/AdDahoWCfjq0kcGqGPQ8QV4 abQf9zF0/f3roD031uVhxUAwQbYeuamSpWjyBw7UxdCi0M4//hYLnZjJPADyllVV+1bI mCKg== 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=gBoHeDukKRC914ZDMXFLqVWWJNRPsvA+oZ6Eqk+XrZ4=; b=lBdkVzg+77i82pkvKXbN00wiXXjFtUjXkYapg+0nyNOAGOB4yYpf7fIIaRNrhOjyzu gJjT7A5xTQUc8GDquEQq+TNPu9D+z24bG/R7hsRKTt0+yEfZNWsYUSnF02ydZgle1tSH uspkq8RJqM4XwDnixhF/uQM/Rdj0k75Vcvt+LKd7oZ4pGeppqRV6Wz1sUtYRNMgBnqgY yfX1hGWZbS9Xc0mh75R4RjMZ7VcGQ63CcVp+GWxUTNFz2rhlQfSYQOiYPzXtQmUnPEFQ Lh3IcMO/uuEkKCp38NyC09rKIcoi8x8OCUvf1C1pJn0CR791qAPNc0gO2sk0EIvbUY/o Q8jA== 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 34si3350844qvq.116.2018.11.19.10.57.44 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 10:57:44 -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 9095C169739; Mon, 19 Nov 2018 18:57:43 +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 0051C6607F; Mon, 19 Nov 2018 18:57:41 +0000 (UTC) From: Waiman Long <longman@redhat.com> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Will Deacon <will.deacon@arm.com>, Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com, linux-mm@kvack.org, iommu@lists.linux-foundation.org, Petr Mladek <pmladek@suse.com>, Sergey Senozhatsky <sergey.senozhatsky@gmail.com>, Andrey Ryabinin <aryabinin@virtuozzo.com>, Tejun Heo <tj@kernel.org>, Andrew Morton <akpm@linux-foundation.org>, Waiman Long <longman@redhat.com> Subject: [PATCH v2 14/17] dma-debug: Mark free_entries_lock as terminal Date: Mon, 19 Nov 2018 13:55:23 -0500 Message-Id: <1542653726-5655-15-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.30]); Mon, 19 Nov 2018 18:57:43 +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: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
locking/lockdep: Add a new class of terminal locks
|
expand
|
diff --git a/kernel/dma/debug.c b/kernel/dma/debug.c index 231ca46..f891688 100644 --- a/kernel/dma/debug.c +++ b/kernel/dma/debug.c @@ -106,7 +106,7 @@ struct hash_bucket { /* List of pre-allocated dma_debug_entry's */ static LIST_HEAD(free_entries); /* Lock for the list above */ -static DEFINE_SPINLOCK(free_entries_lock); +static DEFINE_TERMINAL_SPINLOCK(free_entries_lock); /* Global disable flag - will be set in case of an error */ static bool global_disable __read_mostly;
By making free_entries_lock a terminal spinlock, it reduces the lockdep overhead when this lock is used. Signed-off-by: Waiman Long <longman@redhat.com> --- kernel/dma/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)