Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp335094ybh; Thu, 12 Mar 2020 02:57:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vv6tq5j91wEE6dIoF+g+uaWC2TraFyaLYhYU4+RQDePqj35XyfkxMHpUmYAJSE6LQobD+E7 X-Received: by 2002:a4a:e70d:: with SMTP id y13mr3368353oou.19.1584007031616; Thu, 12 Mar 2020 02:57:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584007031; cv=none; d=google.com; s=arc-20160816; b=j8w+vCfn3gMRwMM/bcmoVlkuA//rrOH66NoQaycTqzKyzSW+9DJnM08S6Sb1kdaAK8 piHr0tc4pKmMkyiruwQLBJsE/DjvXcC7Lba3yPULhoY16yG5bidFzxTp/f5PzCvd3Tes buw8cHYyu9SdTpJmoUmvKdOIMrpZBX/zRhQ7tcwnOXHgL8f95+NpoghCfnoSri3EvUde KshGOgRBgZtRYHr8tvXLFGxAtGBVRTXTt/TwYUk7QqZrXEn+FitevxQaJVv3R+Ur4moj 2SXAAzQqhy/m5DGIfYrNEt9BFyFOxQ9rA4xS2XLqO3A1yurqwC0eUUuAaJk35Rg8s/mT jv1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:message-id :in-reply-to:subject:cc:to:date:from:dkim-signature; bh=OgZKLTHeDttLbT/Br16mrT6HF82SkRK4UDqvqoYSVK8=; b=FmS692oTXPwCNbGoP8fy1L8KIrSffaE36PqV94es0jMWzK+wHSBavGwJy4WDccehQv bmk9WcWsFNpeyrIM1XSg81EZUBaDTFCGWBRTqzJRB/WwPsNFHslp3JD2kLW/OGerKB/Z 1JK3INABnoqr7ExfqSpO0j3tWKgAkYO5S86WMeszBO9b6FPA2ufla3pSVlygPYRFIWbP CcsbcUC4cUoa/iZOeVVnCX7CNjMb+ikNhWeLMBJyw1Uq6zZ7YJdseodvSQCK5Ez7yHgL 57tzCXx8BFlivEzB6sBTtdZZtFQ2kvuBlrCgZnAdFkUe8aaQfBQA7ccpsMFbBjvx24Rw ElAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=VVrou6RJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f206si2141112oig.263.2020.03.12.02.56.58; Thu, 12 Mar 2020 02:57:11 -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=pass header.i=@gmail.com header.s=20161025 header.b=VVrou6RJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726558AbgCLJ4M (ORCPT + 99 others); Thu, 12 Mar 2020 05:56:12 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34172 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725268AbgCLJ4M (ORCPT ); Thu, 12 Mar 2020 05:56:12 -0400 Received: by mail-wr1-f66.google.com with SMTP id z15so6579649wrl.1 for ; Thu, 12 Mar 2020 02:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:in-reply-to:message-id:references :mime-version; bh=OgZKLTHeDttLbT/Br16mrT6HF82SkRK4UDqvqoYSVK8=; b=VVrou6RJ02jppAuZj5G6brHbhPI2wyw5PI/NdaHb7rQREgtAxNRKRJFmxciD/ERHD9 IF1zI5RJJG8RiCvyocn7d3op31iH9772k2BWpbwl65lOGP1lBdrZXkLd9Ni+uDstRdRk H17KBdKlOAvoedogTlH/A+K5KFYecDDOGcoVD6ipM/q3bkL5zGUyTXI0F6tfzr/AfCkC OKI6x/VYhd5A5OV6ZPpsORHuMTOeWjmCNNqQTINJkXPT5WC56bwJRmpBadaOpK2VkJ42 cOYA1GXaZB9I2x/6inAAjIgYuDzNOQ3WD6Gz3m2cq0cHf+G2VWE1kkiEop1SXiAQ+UpV v2LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:in-reply-to:message-id :references:mime-version; bh=OgZKLTHeDttLbT/Br16mrT6HF82SkRK4UDqvqoYSVK8=; b=H415HKACRTn9X1H0DBLTrWpsyeUKeFs6BctaqukMBiiWjeUyY6M/eEElRhxH78vWEq ApfmUiARzUG68fm1Ektln7A0IHDyRMR2oqg8EJeQ1MYNOYdwpPMhYcJF/bal856h6O6e 3CBRrVs3811mt7lovmhZMGVUTRBq0BRRSGZB1qNVHtlPIe9yuUCMkct54uDyVJnCBztR OEET2BKEU7UjrYRuPHPWQdocIiIgjks3cqGoun9wG1flMtSKq0FmVYaCyBekI5f6ZYsJ XYs3qLUoVk/LGSSyA+9hdY/44gop/+rtFGbqngTe9pl3aZ84PutYVkAUY0nh3RIs9O8V fcTA== X-Gm-Message-State: ANhLgQ1aph8yxxAyR/lG6XL5yHGatRcVSPOithikPsmBgpYEYCzVLOZ8 C2ADw0D07h28AeLsIVubBQ== X-Received: by 2002:a5d:4386:: with SMTP id i6mr10157720wrq.412.1584006970772; Thu, 12 Mar 2020 02:56:10 -0700 (PDT) Received: from ninjahub.lan (host-2-102-15-144.as13285.net. [2.102.15.144]) by smtp.gmail.com with ESMTPSA id a26sm11998273wmm.18.2020.03.12.02.56.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Mar 2020 02:56:10 -0700 (PDT) From: Jules Irenge X-Google-Original-From: Jules Irenge Date: Thu, 12 Mar 2020 09:56:01 +0000 (GMT) To: Andrew Morton cc: Matthew Wilcox , 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() In-Reply-To: <20200311200023.974009d9a5648b977d5168f6@linux-foundation.org> Message-ID: References: <20200312002156.49023-1-jbi.octave@gmail.com> <20200312002156.49023-2-jbi.octave@gmail.com> <20200311175919.30523d55b2e5307ba22bbdc0@linux-foundation.org> <20200312022948.GH22433@bombadil.infradead.org> <20200311200023.974009d9a5648b977d5168f6@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 11 Mar 2020, Andrew Morton wrote: > On Wed, 11 Mar 2020 19:29:48 -0700 Matthew Wilcox wrote: > > > 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. > > I can well imagine. > > > we have similar > > problems over the vfs. but we shouldn't be obfuscating our code to make > > the tool happy. > > Perhaps sparse needs a way of being directed to suppress checking > across a particular function. > > Thanks for the feedback, maybe this is a limitation for Sparse. I have experienced quite often this problem.