Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp8989ybh; Wed, 11 Mar 2020 19:31:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuMVXhT3jTkhyMMADFT8cVyXWS3vVYOnNpOiLoWcpPUOXzb5V8rE5YN4a284hFPx/NeyA0n X-Received: by 2002:aca:2419:: with SMTP id n25mr1108862oic.13.1583980312840; Wed, 11 Mar 2020 19:31:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583980312; cv=none; d=google.com; s=arc-20160816; b=c0EHfN+g9KPeeF91YCcxSC7vLrJqNxfY/W+VJr+J8q8z25nxKDDaCbWZowv7ZR8SQg vqKhi0EXhnTiLn9pQzUp69fHc4nX7qQtuXzGUyigOoplMZ0DWNgUTF3vNRmbrpEF48gm HWmA0hIjLBCDqHqcKLWB7z44SUj6ZgeT8Yx1HVRjiHMvn5dYZFLrFTtMdABbj1s22bwe QHXTfeB9iPBSvTkFQhjjy3mKUp1CxZ7uAgivEW9jV/s6cH6JoIu4UbBHe8+ilJAqvL1y vaqn9kOfZwcsSvBpcmLWETMHbxqqyXNUsFJO/AbWt+ZJaQ8AH678AkchUCryRNHH+vTv zoGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1Jj6L8vIcZ93mZ6eanG7loVD291lPrGo+W34O45vAww=; b=cevaAsycixubixHj7QYiRDtiAJqIeVC+p44mPHENVBdiN9sx0I5JTHgOgnzMf+xKzb 1VzrMoNRnFZc8bvdv04AWouqkZLQUilUrsEMzRMrjt53iBoe7diDQH1PVi5oCRgccsI+ sCRQqGYSs1TSSwBEFoCouLabJioED8o7yrQfWlmj9EmSANVt9fO37TrRTnuppSP3mJYy wI2z9PUfkgGf7r0L4Ad9T16yON3tUcpMF19cNGVtyOj4jmec7LBuj9MYcHuqVBYUoCzY XmL1bIeJRGmmcGeZ+YoqTerHAL6//LkkCRN1LmViN01fAelDV38kZlTiwZ2EKqz65Te+ Ecvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HIShHKke; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i62si1849269oih.41.2020.03.11.19.31.40; Wed, 11 Mar 2020 19:31:52 -0700 (PDT) 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=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=HIShHKke; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387655AbgCLC3v (ORCPT + 99 others); Wed, 11 Mar 2020 22:29:51 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:32970 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387608AbgCLC3u (ORCPT ); Wed, 11 Mar 2020 22:29:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1Jj6L8vIcZ93mZ6eanG7loVD291lPrGo+W34O45vAww=; b=HIShHKkeQH+3yNOsaYMjZBAn0o LxgYzRbK8kN8tAOUHcRHX18tSVWlTb9yexsxk+5sDZic+MpENzPUMWEFl6V9UvvkEp3W+7AcVF4w+ /g1YlvOU/R+R594ghg5lUax6xjXiX5FsG4j0slA/7V7o2Xkyt8vrcjuG/PVZSTaQ4qWiH5qYgen2+ VgjPRy36KC55yPk5/d2IO89IvCf/1j7Ao9o/OPxwvZBOjS636jziQ3KRGgBjLfxCgHrV++XGKGbHP uSD4Qe+ER5RmV1cKeWvM9ink9+Pj2V86+AwKqcvP7QgXK6UJhuxpyR1ej5QiSoELlwlF2JlDLPBOF jkDrc7eg==; Received: from willy by bombadil.infradead.org with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jCDbZ-000361-13; Thu, 12 Mar 2020 02:29:49 +0000 Date: Wed, 11 Mar 2020 19:29:48 -0700 From: Matthew Wilcox To: Andrew Morton Cc: Jules Irenge , boqun.feng@gmail.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/1] backing-dev: refactor wb_congested_put() Message-ID: <20200312022948.GH22433@bombadil.infradead.org> References: <20200312002156.49023-1-jbi.octave@gmail.com> <20200312002156.49023-2-jbi.octave@gmail.com> <20200311175919.30523d55b2e5307ba22bbdc0@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200311175919.30523d55b2e5307ba22bbdc0@linux-foundation.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 11, 2020 at 05:59:19PM -0700, Andrew Morton wrote: > hm, it's hard to get excited over this. Open-coding the > refcount_dec_and_lock_irqsave() internals at a callsite in order to > make sparse happy. > > Is there some other way, using __acquires (for example)? sparse is really bad at conditional lock acquisition. we have similar problems over the vfs. but we shouldn't be obfuscating our code to make the tool happy.