From: akpm@linux-foundation.org Subject: [merged] =?US-ASCII?Q?ocfs2-add-missing-annotations-for-ocfs2=5Frefcount=5Fcach?= =?US-ASCII?Q?e=5Flock-and-ocfs2=5Frefcount=5Fcache=5Funlock.patch?= removed from -mm tree Date: Fri, 03 Apr 2020 13:35:20 -0700 Message-ID: <20200403203520.jOjfpcM2J%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Return-path: Received: from mail.kernel.org ([198.145.29.99]:58030 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728079AbgDCUfV (ORCPT ); Fri, 3 Apr 2020 16:35:21 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: gechangwei@live.cn, ghe@suse.com, jbi.octave@gmail.com, jlbec@evilplan.org, joseph.qi@linux.alibaba.com, junxiao.bi@oracle.com, mark@fasheh.com, mm-commits@vger.kernel.org, piaojun@huawei.com The patch titled Subject: ocfs2: add missing annotations for ocfs2_refcount_cache_lock() and ocfs2_refcount_cache_unlock() has been removed from the -mm tree. Its filename was ocfs2-add-missing-annotations-for-ocfs2_refcount_cache_lock-and-ocfs2_refcount_cache_unlock.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Jules Irenge Subject: ocfs2: add missing annotations for ocfs2_refcount_cache_lock() and ocfs2_refcount_cache_unlock() Sparse reports warnings at ocfs2_refcount_cache_lock() and ocfs2_refcount_cache_unlock() warning: context imbalance in ocfs2_refcount_cache_lock() - wrong count at exit warning: context imbalance in ocfs2_refcount_cache_unlock() - unexpected unlock The root cause is the missing annotation at ocfs2_refcount_cache_lock() and at ocfs2_refcount_cache_unlock() Add the missing __acquires(&rf->rf_lock) annotation to ocfs2_refcount_cache_lock() Add the missing __releases(&rf->rf_lock) annotation to ocfs2_refcount_cache_unlock() Signed-off-by: Jules Irenge Link: http://lkml.kernel.org/r/20200224204130.18178-1-jbi.octave@gmail.com Acked-by: Joseph Qi Cc: Mark Fasheh Cc: Joel Becker Cc: Junxiao Bi Cc: Changwei Ge Cc: Gang He Cc: Jun Piao Signed-off-by: Andrew Morton --- fs/ocfs2/refcounttree.c | 2 ++ 1 file changed, 2 insertions(+) --- a/fs/ocfs2/refcounttree.c~ocfs2-add-missing-annotations-for-ocfs2_refcount_cache_lock-and-ocfs2_refcount_cache_unlock +++ a/fs/ocfs2/refcounttree.c @@ -154,6 +154,7 @@ ocfs2_refcount_cache_get_super(struct oc } static void ocfs2_refcount_cache_lock(struct ocfs2_caching_info *ci) +__acquires(&rf->rf_lock) { struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); @@ -161,6 +162,7 @@ static void ocfs2_refcount_cache_lock(st } static void ocfs2_refcount_cache_unlock(struct ocfs2_caching_info *ci) +__releases(&rf->rf_lock) { struct ocfs2_refcount_tree *rf = cache_info_to_refcount(ci); _ Patches currently in -mm which might be from jbi.octave@gmail.com are mm-compaction-add-missing-annotation-for-compact_lock_irqsave.patch mm-hugetlb-add-missing-annotation-for-gather_surplus_pages.patch mm-mempolicy-add-missing-annotation-for-queue_pages_pmd.patch mm-slub-add-missing-annotation-for-get_map.patch mm-slub-add-missing-annotation-for-put_map.patch mm-zsmalloc-add-missing-annotation-for-migrate_read_lock.patch mm-zsmalloc-add-missing-annotation-for-migrate_read_unlock.patch mm-zsmalloc-add-missing-annotation-for-pin_tag.patch mm-zsmalloc-add-missing-annotation-for-unpin_tag.patch proc-annotate-close_pdeo-for-sparse.patch