Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3831786ybv; Tue, 25 Feb 2020 08:05:43 -0800 (PST) X-Google-Smtp-Source: APXvYqwzYuUDACR3wgaV/9hw9BiP4BTwJADTeDWx8GijjUCOEPbxHnDoeaWK6aWEOBYwqz8Xk3kn X-Received: by 2002:a05:6830:1e95:: with SMTP id n21mr46701727otr.25.1582646743667; Tue, 25 Feb 2020 08:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582646743; cv=none; d=google.com; s=arc-20160816; b=A9kqLxW7XkU44ULi5heotYAMw2RgMSigVcbCqimU8IYAfJJDVC60nkwUu31MbSkxDr vWZMD9OUWmwKhB2IP3YQZyqj30jE2I6+tZIwEMI/jQhRc5j5FdcPdfe0QuSmCzLuif04 U95/Bcx1+UODYMoWo6SKwxBd9b4yHR2xIxmXEtXM6C9N0Gt0xjOovayqKV2jbrTRMHzf twPybeiOY5TWnejvqiAX+kIMjPhg6jvWdgdtrba1EpgUxmTS9RNxPF8Au7vBysdKGRlu vv5o0hTxkiA4htADT6xwY/hyd4wN/bNlC2n1IE5AUqMFWPcSAcPIAvqvk4e+N2aJzItR TmLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4Wl6toVwSlhLu6MPwxzK75ksxa4IcslNBgkeMiswcaY=; b=Sj7DVByc493eqpt/51jDfeqaHVpVqa7FdcEgV4fZ02u/qB6TE4letSmqWGRky5PQvi chGtkwhlrz5tkQFOIds78UhQzPy1JUPstwR3v2/BwX89HzcdJ9ky7XqdEltKraaHThtF i8Fb7WcxJl9M8Jz6d6IBaBgvS4CbKFLGeCTo5PAk2av9s9H6+tGlFdMr0G8bVd5+5Bb3 wyxmakeWkTeuURNGW6CwXJ3qRBZgS7QIeWsDc0oEUi3fQ+65N+Eqlcjggd3SFRgd0LZD mKKt2yAj+wHKp8vAdPb1IAehLdjPZ0JiDRCATB05Tkq2laA7Df+7eHQIC0+ccGx3vWoc 5csw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=ja9V7UPI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n203si6472747oia.112.2020.02.25.08.05.30; Tue, 25 Feb 2020 08:05:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=ja9V7UPI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730476AbgBYPoI (ORCPT + 99 others); Tue, 25 Feb 2020 10:44:08 -0500 Received: from userp2130.oracle.com ([156.151.31.86]:50692 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726019AbgBYPoH (ORCPT ); Tue, 25 Feb 2020 10:44:07 -0500 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01PFhLDd146036; Tue, 25 Feb 2020 15:44:05 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2020-01-29; bh=4Wl6toVwSlhLu6MPwxzK75ksxa4IcslNBgkeMiswcaY=; b=ja9V7UPIiGVBhN41YW/onNGP5HmjrQiPRm350V0hnPK0PzMiIHBu957Dg4PQned7sqU4 gKMDvt4KGRUfjGggrckvJ4TC0LZBL9/TOa62VbYQbtlg+Fk2UaBSC3tUXaSvmvtMTc3M BeaLU1QKHOdRpyMxQZMvtRx0PCrgmybHnkzFSuK1QC3hF+U9gj/QsCRG7xotEYeOWhp4 ZGuo3B2hxFaQxR+6CgJqGjHM5uiT0CDt3cfeCn8vHcEhF1U1C2e4Kekm6bHh1qtiaq93 Ax0E3Y1tP83dvsHv+5jr/YuwfhgmR49vs4vZDIEk5YNRNQ3xureOeQ3ckTISu1M0dmTw Xw== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2130.oracle.com with ESMTP id 2yd0njj8cd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Feb 2020 15:44:05 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01PFg8F7051671; Tue, 25 Feb 2020 15:44:04 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3030.oracle.com with ESMTP id 2yd09at6u5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Feb 2020 15:44:04 +0000 Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 01PFi3AJ014085; Tue, 25 Feb 2020 15:44:03 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 25 Feb 2020 07:44:03 -0800 Date: Tue, 25 Feb 2020 07:44:02 -0800 From: "Darrick J. Wong" To: Jules Irenge Cc: boqun.feng@gmail.com, linux-kernel@vger.kernel.org, "supporter:XFS FILESYSTEM" Subject: Re: [PATCH 03/30] xfs: Add missing annotation to xfs_ail_check() Message-ID: <20200225154402.GD6748@magnolia> References: <0/30> <20200223231711.157699-1-jbi.octave@gmail.com> <20200223231711.157699-4-jbi.octave@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200223231711.157699-4-jbi.octave@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9541 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 mlxlogscore=999 spamscore=0 adultscore=0 malwarescore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002250122 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9541 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 adultscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 impostorscore=0 mlxlogscore=999 suspectscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002250122 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 23, 2020 at 11:16:44PM +0000, Jules Irenge wrote: > Sparse reports a warning at xfs_ail_check() > > warning: context imbalance in xfs_ail_check() - unexpected unlock > > The root cause is the missing annotation at xfs_ail_check() > > Add the missing __must_hold(&ailp->ail_lock) annotation > > Signed-off-by: Jules Irenge Seems reasonable, though I'm wondering if this is a treewide change you seek to apply yourself, or merely a large patch series to merge through the individual subsystem maintainers? Reviewed-by: Darrick J. Wong --D > --- > fs/xfs/xfs_trans_ail.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/fs/xfs/xfs_trans_ail.c b/fs/xfs/xfs_trans_ail.c > index 00cc5b8734be..58d4ef1b4c05 100644 > --- a/fs/xfs/xfs_trans_ail.c > +++ b/fs/xfs/xfs_trans_ail.c > @@ -32,6 +32,7 @@ STATIC void > xfs_ail_check( > struct xfs_ail *ailp, > struct xfs_log_item *lip) > + __must_hold(&ailp->ail_lock) > { > struct xfs_log_item *prev_lip; > struct xfs_log_item *next_lip; > -- > 2.24.1 >