Message ID | 20240124115938.80132-27-byungchul@sk.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 076E3C46CD2 for <linux-mm@archiver.kernel.org>; Wed, 24 Jan 2024 12:01:18 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 496218D0007; Wed, 24 Jan 2024 07:00:14 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 446BB8D0013; Wed, 24 Jan 2024 07:00:14 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 226548D0007; Wed, 24 Jan 2024 07:00:14 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 004828D0013 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 07:00:13 -0500 (EST) Received: from smtpin07.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id CCE311606DC for <linux-mm@kvack.org>; Wed, 24 Jan 2024 12:00:13 +0000 (UTC) X-FDA: 81714061506.07.51D8026 Received: from invmail4.hynix.com (exvmail4.hynix.com [166.125.252.92]) by imf24.hostedemail.com (Postfix) with ESMTP id D91AA180013 for <linux-mm@kvack.org>; Wed, 24 Jan 2024 12:00:11 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=none; spf=pass (imf24.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1706097612; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Y/WzZFV2NiV0SRE/nR0S3n61Bm4Ow6TTSrSzZU3kLnU=; b=AUDjEUrU6Paq8Gr68nZsu/E2Pi1zR+JdXYuJ5fiU7UR0KhkgKUEE9JliqZgXURqAMF2NEr IOhJOhpZQgs+9JhNZJroX6IvgmOJDWNSfpJXZut0Fyv2Y177EFkt6xdbTwH+0s3RSPMbfE xG38uUplVO5NDrA+K7OHHZFj29xW0Es= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1706097612; a=rsa-sha256; cv=none; b=aCL2CH/09WlkvMIQqL/r1c6E/o8YFARsXAmANlMrQpY9VZd8+E5qfk7F0fDVfay21IkG2h sY4Dktc5yHoCJPBJy8gjQdOASFES9JDU4FdUaf0aC7TchuHUcGucYqNc2vw6QCiqwuVasy UhEPJSoBu2RTnRkzXKQAl5desvALiX4= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=none; spf=pass (imf24.hostedemail.com: domain of byungchul@sk.com designates 166.125.252.92 as permitted sender) smtp.mailfrom=byungchul@sk.com; dmarc=none X-AuditID: a67dfc5b-d85ff70000001748-d3-65b0fbb8fd1e From: Byungchul Park <byungchul@sk.com> To: linux-kernel@vger.kernel.org Cc: kernel_team@skhynix.com, torvalds@linux-foundation.org, damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, tytso@mit.edu, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, gregkh@linuxfoundation.org, kernel-team@lge.com, linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@kernel.org, minchan@kernel.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, sj@kernel.org, jglisse@redhat.com, dennis@kernel.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz, ngupta@vflare.org, linux-block@vger.kernel.org, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, 42.hyeyoo@gmail.com, chris.p.wilson@intel.com, gwan-gyeong.mun@intel.com, max.byungchul.park@gmail.com, boqun.feng@gmail.com, longman@redhat.com, hdanton@sina.com, her0gyugyu@gmail.com Subject: [PATCH v11 26/26] locking/lockdep, fs/jbd2: Use a weaker annotation in journal handling Date: Wed, 24 Jan 2024 20:59:37 +0900 Message-Id: <20240124115938.80132-27-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240124115938.80132-1-byungchul@sk.com> References: <20240124115938.80132-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSbUyTZxiF9zzvZzu6vOsIvIrJli5mDhQURe8ZZ1hitmfLjDNmf1wiNvYN NBYkLZ9LNICoyJdKhPqBs6CptRSLBQ0KJQwjgsSCQqAiNEAIA6RA0DbryqaUbX/uXDnn5OT+ cXhK+ZBZy2vTMiR9mlqnYuW03BtWs6k52CBtrvdEwIXSzeB7W0RDtd3GQt+dOgS2pnwMM4+/ gyH/HILgs14KjJV9CGrGRylo6vQgcFoKWOif/AgGfAssdFeWsHDyhp2F56+XMYxUVWCoc+yF nvO1GNoDf9BgnGHhqvEkXjnTGAJmKwfmvPUwYbnCwfL4Fuj2DDLgHI6By7+NsNDq7Kahs3kC Q//DahY8tncM9HR20dB3oYyB+vlaFl77zRSYfQscvGg3YWgoXCk6/eYfBp6UtWM4ffMuhoGX LQjaisYwOGyDLDzyzWFodFRS8Netxwgmyr0cnCoNcHA1vxxByakqGnr/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3EXQ9u7Jwiq4j9h sBS101DjGMRQZskg4NetWgQ9yUMMnL80zoAxOhlB4nkDCU2/n1MQ2+UDzrEcepuvUDNoJ4TY shNC5WguKbzI54VH2R8YIbaqkxFyLRFCWcFy4XpFPxbyhh2UYDFfpAXLcBojJAy1YeF7YyMj 1F9xksLntky8e/5+yaYgMUQZKWpWbwmUBP+w9dHH77qdjDE9onTIySQgluU5b948FJSA3Fia W8p3dIwTLnbnvPiypK9UApKwBHdhOl/w4xXtCmZzgXzdiH2qRHJL+I7429jFUm49n57cQrmY 5xbxhaXWqY7bpH8nq5N0sYzz4T+ZLzMpSJKLppmRu1IdGapQhvis0qqCo9TKk6uOhoVa0ORn TGcnUsvRz1a/asSxSD5Dus1cIsooRaQ2KrQa8Swhd5d2zC0WZdIgRdQpURN2WBMRImqrkSdL yudIdwSIgTLumCJcVInicVHzP8Ws2zwdWl/V5GkI9M+b9WDgo7rl97oFuw3LSus773v5djc9 8JHNaXltVJ027NFlmw8Vp2+3Ru+znzD4Z5T3Rg3n92/9ZrRdO6f3YFQHjBEevX2bA/QjGxYe OfzeviHduj15bHXS2N4YXYD/DG+vo/V4MfO0N/Qg7KutULU/DvsSf7P1zLM3TjmpDVasXU5o tIp/akcm2y8DAAA= X-CFilter-Loop: Reflected X-Rspamd-Queue-Id: D91AA180013 X-Rspam-User: X-Stat-Signature: p7j3wtq1j5iyhs96z7i1d6c8dt4k4un1 X-Rspamd-Server: rspam03 X-HE-Tag: 1706097611-979554 X-HE-Meta: U2FsdGVkX19pHHbauVv2yVWx5e6MQCKBsBxwtWADdBPJrrvivqXdtrdmt9qJFgfniNb1F/ggi4keVcSUEF8uZ7jMEa7FgEt0CvfJGu2XOKjUu2WR1C+n9JkF6NE4AlnBc1ezzBL8Z0NT7C37J6eHZ91oAXt9+ZN6xGUP7YpL1tOWcz7i5kp1fqp7me0fL2f6vU0+Q18ZIzQ4XuxEylcp55Fu3PudOBCD1bUeXIGCkpAGRiXx0rZJMygK2+4DNrcuE+sNWiUPqgvpLxqVWSjwy0vtL1Rq1tIm+RtV9l+ppGiuiI5igqetTAk61Tp5MeWniLsfK/staJXt9xoYGQfL72z66Le+5pkeErQfv1GDZKCJJhEXotI9DxfPtoBLEfXlWwLPIRYE0HcLDk63fkF7W0+bzY7F/GKUKP2AYrVfb+Ows5v/RrOpGSCJ+PB0Nf6/1lnud1gMLlN+DQLvwE3kEix3TE4fx4aMfXfULpMtHqKioWn7942FzJEnsEYPMEMOyNixRbn7R0KEc7s1UB9/BWH2tHODrxUtWyEWbnQfUOol9LqT3UvSS03s8bSoz3Ue9DRRHpDMBBHj3/mRgMYKYeka2l98IjYGNxqgCCWkIgUZ9mH29KF76opwqFlOCiIBxfg/h+HQDlUIYxBjYmK/TgA87mWEjVGXaLcQv9UPvw6Gsg5u+vRjnFEDXJLyCkSXOId6XnDhcjgy6Zycvo7tiaBHnrd/8Ejh15VNJ8KlDkRvyo0w+pWiUQTOE/oXA4AvWKQ4cif6XjF5EAqCcMfSYt6GbF3i+LfXfXRF4TKvlMjxNFlzMMu88ZKeyEOtYOuBeKlK6Qj3sf+skqhDEDzz6seFJ/l0+cazKZer9WLu00Hr7o1t4Lo7fpgbwBOcaOsGFbKsjssCV78EH+V+wgVVKoyH3e3nyo0rYeBmtpHZWB3R+2frlyK6fOllY0WcU9MS/JchgdxZzcw3QkJulaX s2y9Ukv9 x7B3bUtDtFSPcWETLSA6WrSNrKTpvJi22D01KUgd9WqMfJP6dWiyEkLGV6NraRKUbAOoM 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/fs/jbd2/transaction.c b/fs/jbd2/transaction.c index 5f08b5fd105a..2c159a547e15 100644 --- a/fs/jbd2/transaction.c +++ b/fs/jbd2/transaction.c @@ -460,7 +460,7 @@ static int start_this_handle(journal_t *journal, handle_t *handle, read_unlock(&journal->j_state_lock); current->journal_info = handle; - rwsem_acquire_read(&journal->j_trans_commit_map, 0, 0, _THIS_IP_); + rwsem_acquire_read(&journal->j_trans_commit_map, 0, 1, _THIS_IP_); jbd2_journal_free_transaction(new_transaction); /* * Ensure that no allocations done while the transaction is open are
jbd2 journal handling code doesn't want any jbd2_might_wait_for_commit() to be between start_this_handle() and stop_this_handle(). So it marks the region with rwsem_acquire_read() and rwsem_release(). However, the annotation is too strong for that purpose. We don't have to use more than try lock annotation for that. Furthermore, now that Dept was introduced, false positive alarms was reported by that. Replaced it with try lock annotation. Signed-off-by: Byungchul Park <byungchul@sk.com> --- fs/jbd2/transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)