Message ID | 1542653726-5655-11-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 2F7FD5A4 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 19 Nov 2018 18:57:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 223492A457 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 19 Nov 2018 18:57:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 165D22A469; Mon, 19 Nov 2018 18:57:43 +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 B81AB2A465 for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 19 Nov 2018 18:57:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 52A836B1BF0; Mon, 19 Nov 2018 13:57:39 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 4E2756B1BF1; Mon, 19 Nov 2018 13:57:39 -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 330026B1BF2; Mon, 19 Nov 2018 13:57:39 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by kanga.kvack.org (Postfix) with ESMTP id 0BC9B6B1BF0 for <linux-mm@kvack.org>; Mon, 19 Nov 2018 13:57:39 -0500 (EST) Received: by mail-qk1-f199.google.com with SMTP id n68so70140530qkn.8 for <linux-mm@kvack.org>; Mon, 19 Nov 2018 10:57:39 -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=okfj1MVMzbeAVQkSXdOtylbrtrPMSpu+PZx780Xlvgs=; b=SlhtJ4066BiUqN8N/t12GIPUnOvdJa382SOMBtv8PAwjG6Z0ERVJgNxWWKT4nkr/Y2 hAAqAbkn7wCQm67tc3jDftVj3/SOmijjtU9Vypm0f29+WfJwOxKCCI0uBYV66hnjqp7k XjoGQzKtIWv9fMVGd4b4oNX2FRrVTtRf8YoTA9k0lvx0BOvmsxFoC/n9mwKkP0voQ5l9 vV6oKGhtsISCL2FV9bFk8TM/tUd8n198qIxSZzRN3MqZdB7h1Uxhljex0FAo+LOh8sqr 3QA0Qa73ElYP9H01jgyQx3SANFTXv+/27WAAv/j1BLBAwmIDf8WB2/rt+SuKTM8toiwg ZOag== 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: AGRZ1gJmXcZ6FMsOkjs00GnE+Ld3ixtLKjPdS0bkdhuhF/C4o1/MPKt0 AUshpxPj8ne0cG5n/bxkqcMYcko2o9I0Xkdv01tQFcaxLaRcBSbc4kMctqXOlnX9JRmY/gA3O/q hzz60t3DFwMPXhku7cBVhzDNn+umch115eoe07pZ9w9FH3bRUquMP7+qTnSZOEwSVNw== X-Received: by 2002:ac8:ecf:: with SMTP id w15mr9282409qti.359.1542653858826; Mon, 19 Nov 2018 10:57:38 -0800 (PST) X-Google-Smtp-Source: AJdET5fqUIqQ3KR/RFtWxJPrc6/KhyUcd4jng0gTLRiDfOEGaCkjETY019bDuG7T7j6CU0vYcQpM X-Received: by 2002:ac8:ecf:: with SMTP id w15mr9282392qti.359.1542653858190; Mon, 19 Nov 2018 10:57:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542653858; cv=none; d=google.com; s=arc-20160816; b=l5/Coq6hQ8ERY/bugA6nQRsoDte/n899mWyYKojibMtg1zUAA0ocAAcqkvRieBbcJD i1NeL7+c/jr6QhaYY67sRhpbxrRkPsHh7mJB7qSAnqGQmvqOcjgTlyxemfD3r746vn7M DScg0Tr/CD6MS8ZiD/zOw6TXZupd58ARjNWbJOMUD4mQeGP6VxEaKasEqVnQ8nK/OQKp tPyoDjM/aqx3guuZm3YcfY/gQN94F7y1xfJt+0R6mlAT0p+85hzL8CVNmUsGS9nhND0Z q1IL5AcS93c8+4oQ0eZbG1xcWOgeZUVMJ36iGzacoq0i0wQSH0nguyPJFpRvs7g7/ebl WAkA== 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=okfj1MVMzbeAVQkSXdOtylbrtrPMSpu+PZx780Xlvgs=; b=pQIUdbHNYwmNsMOixG1OWj1ZAMR7ApLeCnE/fgsDSIpl+HBfkPUfKgaJwnk4/63o4l GW1xkEykXuz+ocorvSnJcvC3B27v6hH5MyMtsgROS4qXOQO9NoxWGo7xLd0KPxxYvOkE gDzWT5RVCMS5ytHAgd5IsQVRNbl2Z9x1jFvhJXBMGP3SrM+pwXSFuF9oiKC1gDwWwgip sjeRwwtCXqhbQpO6cYSBgAHC6qqdGnaabveEOM+bwKhtIhraeAtVK9w0rHO0cN/Xe/fM nPijXwscOdujs1cf4wvVmwgyrJZBqlihL1F5S6/I+kzy1X8JjVtXzqlcvh5s1XokmYXX 99/Q== 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 w8si27002418qvn.137.2018.11.19.10.57.38 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 10:57:38 -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 27E6FA403B; Mon, 19 Nov 2018 18:57:37 +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 8B59B18C51; Mon, 19 Nov 2018 18:57:35 +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 10/17] lib/stackdepot: Make depot_lock a terminal spinlock Date: Mon, 19 Nov 2018 13:55:19 -0500 Message-Id: <1542653726-5655-11-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.38]); Mon, 19 Nov 2018 18:57:37 +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/lib/stackdepot.c b/lib/stackdepot.c index e513459..fb17888 100644 --- a/lib/stackdepot.c +++ b/lib/stackdepot.c @@ -78,7 +78,7 @@ struct stack_record { static int depot_index; static int next_slab_inited; static size_t depot_offset; -static DEFINE_SPINLOCK(depot_lock); +static DEFINE_TERMINAL_SPINLOCK(depot_lock); static bool init_stack_slab(void **prealloc) {
By defining depot_lock as a terminal spinlock, it reduces the lockdep overhead when this lock is being used. Signed-off-by: Waiman Long <longman@redhat.com> --- lib/stackdepot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)