Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp29898ybh; Wed, 11 Mar 2020 20:02:58 -0700 (PDT) X-Google-Smtp-Source: ADFU+vuc8ILzdDp6UwIpFbh72f1ovvQnRoWG04oPDUmsJiPatgtgv+EUTDcI+zFrxbGT3wO8C4pF X-Received: by 2002:a05:6808:d7:: with SMTP id t23mr1177617oic.69.1583982178695; Wed, 11 Mar 2020 20:02:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1583982178; cv=none; d=google.com; s=arc-20160816; b=i4Rb83pv5t5Lv0ExHpo2tmwGTY2lAYD3f/dftKNM0vYiuGERSaoh0hEIP5LUkH9dfd PNXof11T9WTAkVCwXx9CHxzWi9JIj078JUWswCD36wvNYrjVN3NC21tYMWdznMlE1ZOm B42Pb5lW3LTahDQuimRKY1anyl9UhtFkVBWXlSfBT//xjBEDNMYBIVOxi4uThXZcmFGf wD91DEC32Km4MboTd7LlEf09pF6EYjPUI8llQj+XslKg3v7PCGwGjopkkTwWTgib6X09 SnV1I388AoUZeQ4XVyO+FLAe0ANCcYMq+0pfM4pG2h+qUUsAooyL7y8Y/OXS34IN1bG0 8Szw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=USwWLSSd866j5qs9Td0XgKqsQQDx8HdKkiNyXN3p3Co=; b=xHz6DtDDDCIeSuHtzNYTXfDBQeXm2jGPPce3Ivygb1flczPlob43O75VstV2hwkcHW myBODMVqg4DWlHA+SOLYZcHuKBTtPIaVox6RPCoYDa1xuSvdlVE1WUfX5U/qXpiN7Nmk CFCUAvCd2Ll9zAa7uO6JCEk67HMywrkaDzHzkvRWf088xVTdgncAxS/NwursitdFLhu6 kdpf0UOXCjgjiDulkaGPFf/eNfLVEmMAJypPX14D4PFif2BoAHpOT8TBQF3zMVp7C0JC OElZ1Hwdfww6KwUWJ35vKRNJV+6znEFfAVvfgY/JeONuLsK8FznJnvo5u6OUgXqN4kAO Y/GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QUV+09ZD; 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 x73si1973913oif.16.2020.03.11.20.02.44; Wed, 11 Mar 2020 20:02:58 -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=@kernel.org header.s=default header.b=QUV+09ZD; 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 S2387712AbgCLDA0 (ORCPT + 99 others); Wed, 11 Mar 2020 23:00:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:43142 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387609AbgCLDA0 (ORCPT ); Wed, 11 Mar 2020 23:00:26 -0400 Received: from localhost.localdomain (c-73-231-172-41.hsd1.ca.comcast.net [73.231.172.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2C7AD20735; Thu, 12 Mar 2020 03:00:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1583982024; bh=Tzw7OkLhuKwlGaNH6zUaZ92HAbrd6ZAx96ilGAda8sI=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QUV+09ZDscWerAse5sMC/Bzmq/6T1Cul8RokXefoSY9muH4YSLKdP2RTr1DQYA6Un oWCq5rRjXh8iHoFTbisIR8r0um5szGsHkK8yWVdlfMRV9jI4RGxt1tEGYF9CQ01w9F WUozF+mo4X7aT7ET/rDxVpcWQkKMb4sNj7t/6np4= Date: Wed, 11 Mar 2020 20:00:23 -0700 From: Andrew Morton To: Matthew Wilcox 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: <20200311200023.974009d9a5648b977d5168f6@linux-foundation.org> In-Reply-To: <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> <20200312022948.GH22433@bombadil.infradead.org> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.