Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2340779pxb; Sun, 30 Jan 2022 12:49:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6qXelG3cPK4kGpeeEiyCydJZp+iHg5pFTJ4uIFp9u7JHZ1k9ZmiQoyT6dYc5DNSDLN5aB X-Received: by 2002:a17:906:58ca:: with SMTP id e10mr14470864ejs.747.1643575788291; Sun, 30 Jan 2022 12:49:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643575788; cv=none; d=google.com; s=arc-20160816; b=u2wjepgPe4yVqoR0zAA4dQqwiLo2ffg/ZjPMZ/AQ2dVLJzXA8ZtiUkQneqkoPLVx4x tGVhmGpkX5UZxJ+FaYBVrLyJZTZm5+6HJF2Z/SZZtfC+FB+78SDsRyh8wc1UT0ezeRDI PGSqgxAsxMryvsiPS8vOdpr57zczdK4vKh8pzxQQK5Ip/zIYl4dMZfPPwE5VRjsu5/ot /7oc1ulJKG2VHLlYSm+qlXwVhQ78PsmZixqvNSvpM4k4DKasmxlfuxEPJfiFxXv0kn06 0M6MJWhMKnH2N6PLxCwr/raCHpZvA4tzoUZ9TQ/tRPsaWCi49Dz3RFteLcuMKAFMwfCb WJoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=E/VIyc5JpK2Sy5loT9a2HcHWg2TrorJJxRaogeKP25w=; b=ikD3Z8Y70GdN6ida6FpW/MXZnwC2LgrHCB4q8OFAcLC1uYIg4bQA+9CqXjzn8MAFDw 4tw+JedpesSFP3qwYNaO5ccqYnutcOz0nOvEqifZ8XXiiHb+Sa6EB3GoQ5tJjzcbg8H5 l8jn+JWrFhCZx4RcjXNs7eWuYQ3unEnmna5ZVpz+a30Gnh8aFyR0c7dI9rqqg/fzuI5V OA7jBpmZVvmZXzpksFieb7hjEzbLSBk+LfurYX3qhVBr/1MX3K+mpycu/spOQLTcdspU 8XYGcTWDGrOl+aKZxnG1g/OqAzEapyovyH3pIVxSBUvMq1UnRf2zIk4zdpvwNdws/F+z 51Qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=EibPllim; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e21si6737901ejm.908.2022.01.30.12.49.20; Sun, 30 Jan 2022 12:49:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@szeredi.hu header.s=google header.b=EibPllim; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347676AbiA1JiO (ORCPT + 99 others); Fri, 28 Jan 2022 04:38:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59492 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347682AbiA1JiM (ORCPT ); Fri, 28 Jan 2022 04:38:12 -0500 Received: from mail-vs1-xe32.google.com (mail-vs1-xe32.google.com [IPv6:2607:f8b0:4864:20::e32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5E088C06174E for ; Fri, 28 Jan 2022 01:38:08 -0800 (PST) Received: by mail-vs1-xe32.google.com with SMTP id a19so2281542vsi.2 for ; Fri, 28 Jan 2022 01:38:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=E/VIyc5JpK2Sy5loT9a2HcHWg2TrorJJxRaogeKP25w=; b=EibPllimp8WZIwxJdUGUIFAlIuZdyznPvrXJ7caP5EDkiBNUVM4ihiUoIfNxC6TVSx YE207qfvpl7N/VHWz1SefuMcAFD5mqGieRSegzXNyYGWfyIdkPkwWByrIvqWimbKQ8Un /lbUGxvPlDX06Jf/32nPUu5Q90vZSrQ0/ovfo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=E/VIyc5JpK2Sy5loT9a2HcHWg2TrorJJxRaogeKP25w=; b=PV4JfA86nZ3OkzCiETMkMaFbN7ES7Ng9rqOQYK0QkXln5v90KvHAto+AUTzqtIgnuR 9a//+R6aM4o+CAhZ6YGOUwgCfsvSC0pu/NfmF6/BV12s6rpokUAvGwyn9jf4Zy5vsQw6 QJngRpyJOvarrvl83xAdGwSWRomaftXscLSO+Ovbl7tDCRGOUTOg/CsfOwEXYom6XCVv cfw4Ar9ERMyqogILqmXer33T0e3K2unL5N9AYiYjjAMveICRqBjr4FWiDsi3KeQwmPqz E6Hw1pp2NKg9rv6iI5N4rhCYWT3qv0PycOuXSbyxkOvwNrWgQVqy1yyb77G9skeNMkZb bNJQ== X-Gm-Message-State: AOAM530DmqAv/TBqZfZNfTGjLgCEWplXM3ZCzCXNfzYxqg3Z/xR0q9CH slOWApuM6403LhLXmz7j0CRdj2rqvc4VZE6wloRuOA== X-Received: by 2002:a67:c390:: with SMTP id s16mr3769368vsj.61.1643362687362; Fri, 28 Jan 2022 01:38:07 -0800 (PST) MIME-Version: 1.0 References: <164325106958.29787.4865219843242892726.stgit@noble.brown> <164325158954.29787.7856652136298668100.stgit@noble.brown> In-Reply-To: <164325158954.29787.7856652136298668100.stgit@noble.brown> From: Miklos Szeredi Date: Fri, 28 Jan 2022 10:37:56 +0100 Message-ID: Subject: Re: [PATCH 1/9] Remove inode_congested() To: NeilBrown Cc: Andrew Morton , Jaegeuk Kim , Chao Yu , Jeff Layton , Ilya Dryomov , Trond Myklebust , Anna Schumaker , Ryusuke Konishi , "Darrick J. Wong" , Philipp Reisner , Lars Ellenberg , Paolo Valente , Jens Axboe , linux-mm , linux-nilfs@vger.kernel.org, Linux NFS list , linux-fsdevel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, Ext4 , ceph-devel@vger.kernel.org, drbd-dev@lists.linbit.com, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Thu, 27 Jan 2022 at 03:47, NeilBrown wrote: > > inode_congested() reports if the backing-device for the inode is > congested. Few bdi report congestion any more, only ceph, fuse, and > nfs. Having support just for those is unlikely to be useful. > > The places which test inode_congested() or it variants like > inode_write_congested(), avoid initiating IO if congestion is present. > We now have to rely on other places in the stack to back off, or abort > requests - we already do for everything except these 3 filesystems. > > So remove inode_congested() and related functions, and remove the call > sites, assuming that inode_congested() always returns 'false'. Looks to me this is going to "break" fuse; e.g. readahead path will go ahead and try to submit more requests, even if the queue is getting congested. In this case the readahead submission will eventually block, which is counterproductive. I think we should *first* make sure all call sites are substituted with appropriate mechanisms in the affected filesystems and as a last step remove the superfluous bdi congestion mechanism. You are saying that all fs except these three already have such mechanisms in place, right? Can you elaborate on that? Thanks, Miklos