Message ID | 1542653726-5655-16-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 DD30E13AD for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 19 Nov 2018 18:57:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CBF6B2A46E for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 19 Nov 2018 18:57:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C04592A470; Mon, 19 Nov 2018 18:57:55 +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 62C032A46F for <patchwork-linux-mm@patchwork.kernel.org>; Mon, 19 Nov 2018 18:57:55 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 751176B1BF5; Mon, 19 Nov 2018 13:57:47 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 6FCEF6B1BF6; Mon, 19 Nov 2018 13:57:47 -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 614156B1BF7; Mon, 19 Nov 2018 13:57:47 -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 375AB6B1BF5 for <linux-mm@kvack.org>; Mon, 19 Nov 2018 13:57:47 -0500 (EST) Received: by mail-qk1-f199.google.com with SMTP id 67so70126732qkj.18 for <linux-mm@kvack.org>; Mon, 19 Nov 2018 10:57:47 -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=Bxt3ARERLC5KVtx1tQ5C+kuJNMiNscHqVsmanCd8/14=; b=R98mCBPNJijf1AOjLWxNl9zJYYh8vMl6p5MkNm1Tx43dx2pxiwggLotLnAqRg0ThLd dCzhcsgLx6i1SfKxN258sNK+XGdGn2r4nJQXfri1XfcDmSVOBRabRZgD/3C8RaIC36oL lk+O35p3Io+1pukSUqOWXmvHRSmEeFqZ4sZmq6aEtHuR2HGq1sMH/rEpxxNCwJo9044m KRVuSzTDLPMzmbkNYDQsI7tlsckJxcPgcxKMslMR8lsdFg4O/ml5jEf1gAChjnlom27V p7a7LVxf0yNjNO4MXPUIJxwNZ8JHOlywY1ZfX1qrDw0BkKx8a/0+l0UWnOeU5ha1aBJq 58Tg== 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: AGRZ1gJflXdgpNj0fWvTCMzfsof95wMMWMPioQ2yKicNRAjmIZkAvUIt /o7dNypeBH77TCEjqXHGOdFd5MJpygZSwUb63uFej6WDJiWaYZfKA4nR1qd/5cdsvEnNFBcV/Aq rMvhvi8eEKzqPhzHMWs4OXExzCXT6/8mwsmxY91cEBYnjAvQDwrNGJHPPtqoeszQ9Cw== X-Received: by 2002:ae9:e311:: with SMTP id v17mr20785291qkf.193.1542653866999; Mon, 19 Nov 2018 10:57:46 -0800 (PST) X-Google-Smtp-Source: AJdET5ciiFu+AlpX9HkpUE0DzoWx8GuzHjX1ZQbFYsW36xKrvU+wr/ayyrBhf8g63MOIBogmN7kt X-Received: by 2002:ae9:e311:: with SMTP id v17mr20785267qkf.193.1542653866312; Mon, 19 Nov 2018 10:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542653866; cv=none; d=google.com; s=arc-20160816; b=RzBNnGHWRm7hEzY4KTvuWPq+HqapsaOJyAd2lXWD6SVlZkQqTRb4I7xi6Hn673N3EK JW44/PZN8Yz0dHqi2NA52z+3DxGeieSiQ8Y1kY+Vi6NK85pLSnf8Wis1YWfI1dxvnXB9 8MxQwLOj9nrO6fLX4IB+thjEZn6RBk2XJ8V9S0wOZyhRGt3qdvady0mOFBq+ie4ng2Oy AoxADmwo9b8IuvbIetcGMRbjZWUASXEg9GkCr5Z9+8rpfa2NUdw3OTFKu0uxk2tOTahy C4+TNiBiM5NeSDJxS1m0zsf9FqjO1s5Qn3GMXRqn65TZjZnuHbNolnA3Yr/Ovw8P0EVx jQQA== 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=Bxt3ARERLC5KVtx1tQ5C+kuJNMiNscHqVsmanCd8/14=; b=Q1RSIYSlHm0lls71Oj9Ua3WHvKROzhbyWWX3W9KqLl7w+sYT9ndbWocewsTqPzcW5G thTPR9pj8R/hbepYkW8vbmU7rpra3etIVL32D8+3jVakZpTDecJry3SUeLT9Ou85DzFn J3+HihoNQy/TUNSINZNA0bwaqGrnmQxB7mt04T84TF+/GxB91uXL/pntqUnKTm+g5MJA lBatj1sc4ryYGhqvOjXHOMZhEBC0hAcrNxDFWhMicFmiGLGAwgSeIkyZrJOq/qWIgq/H fCkjbu0MhuWu5pnPPF197ecKfJmDzdvGfqHmItfgsNGnOAfeWcnwTYuG05K7AYVMa37i xvhA== 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 i5si1227992qtd.227.2018.11.19.10.57.46 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Nov 2018 10:57:46 -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 2DF227F3EC; Mon, 19 Nov 2018 18:57:45 +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 AE661608E7; Mon, 19 Nov 2018 18:57:43 +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 15/17] kernfs: Mark kernfs_open_node_lock as terminal lock Date: Mon, 19 Nov 2018 13:55:24 -0500 Message-Id: <1542653726-5655-16-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.25]); Mon, 19 Nov 2018 18:57:45 +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/fs/kernfs/file.c b/fs/kernfs/file.c index dbf5bc2..a86fe22 100644 --- a/fs/kernfs/file.c +++ b/fs/kernfs/file.c @@ -29,7 +29,7 @@ * kernfs_open_file. kernfs_open_files are chained at * kernfs_open_node->files, which is protected by kernfs_open_file_mutex. */ -static DEFINE_SPINLOCK(kernfs_open_node_lock); +static DEFINE_TERMINAL_SPINLOCK(kernfs_open_node_lock); static DEFINE_MUTEX(kernfs_open_file_mutex); struct kernfs_open_node {
By making kernfs_open_node_lock a terminal spinlock, it reduces the lockdep overhead when this lock is used. Signed-off-by: Waiman Long <longman@redhat.com> --- fs/kernfs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)