Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5048863rwr; Sun, 30 Apr 2023 22:08:50 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5c0ZsU8FGLNAHCT1bq5DuKM3JZfpItMij4AOCmANLwgbz/xvj1Mp8VHHlXU0evNA3ZXPsT X-Received: by 2002:a17:90b:4c04:b0:24b:56a1:6d0a with SMTP id na4-20020a17090b4c0400b0024b56a16d0amr13538955pjb.1.1682917729689; Sun, 30 Apr 2023 22:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682917729; cv=none; d=google.com; s=arc-20160816; b=FUWpbot1vxCMVMjFNEV1uksLkAMPYkF3Uw4aZxWos0YsbAuH8g2xXka2nrZm2dnxdp Mqg578gyxpAOst4g8uU1V63Cc/a9v9sbFIYC/1IV9lXj3ohkM61FO2zps9r0rHloMmoa aYxRRovpU0Q9orY4PQ4RYKIokCPJAbTFlrETxWFP8/Wb5I9i9lMlR8Wn0XsNpWYTHMyl HnDOWQUkul3J9rwIiZjvFNBZXmKiZvWiiX4RhKOUxT8zreCn5EphMy5vfGdxUJapCGME 65VqWbHGbEWhmbtD15Gvq1gBhRlNVYnrgxKP9nhwqWaQcJ4owa8HYdVqrDya9jjlwsEC jSIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=XygpNDNEzFf/uqkXQgGAo8EqHQm7l4KRXtbBKrAsVFs=; b=jHerX8OHb564BpfrPZJ4467HfSynQ4H2vnl/UEZGEY2JMrpy0M9IdFIDiwybYn9wU2 9WA4eFfuZNohMp/9f7PQFYXM6yiYTCbSmHCMrqsp0NuFkvKvb3Oii2t5ul0a+eYfo0sF TNngVnXtKVEMRZVyU6DWtMSsWlQTibmhjpP/zILznAbSGtvK+iQVHyndH4X6iXl+5NXi EbjVBn7CzBikHIsma9XTQFGzSlUfrP9lR4HBRA5G4APzc6McG6AndXLkyPSkC+jqQLvM gLbnssRZMT9tZSGYEBwBigYlVEi5VyVb7tYVwXfAPu0F87Dtm5LRJfrXcP8QERt1XONU f5Yg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a17090ac69100b0024dfab55f54si1987039pjt.79.2023.04.30.22.08.34; Sun, 30 Apr 2023 22:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229688AbjEAEru (ORCPT + 99 others); Mon, 1 May 2023 00:47:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39028 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229482AbjEAErt (ORCPT ); Mon, 1 May 2023 00:47:49 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A58BDE; Sun, 30 Apr 2023 21:47:48 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id D5EBC68B05; Mon, 1 May 2023 06:47:44 +0200 (CEST) Date: Mon, 1 May 2023 06:47:44 +0200 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Theodore Ts'o , Baokun Li , Matthew Wilcox , linux-ext4@vger.kernel.org, Andreas Dilger , linux-block@vger.kernel.org, Andrew Morton , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, Dave Chinner , Eric Sandeen , Zhang Yi , yangerkun Subject: Re: [ext4 io hang] buffered write io hang in balance_dirty_pages Message-ID: <20230501044744.GA20056@lst.de> References: <663b10eb-4b61-c445-c07c-90c99f629c74@huawei.com> <20230429044038.GA7561@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Sat, Apr 29, 2023 at 01:10:49PM +0800, Ming Lei wrote: > Not sure if it is needed for non s_bdev So you don't want to work this at all for btrfs? Or the XFS log device, or .. > , because FS is over stackable device > directly. Stackable device has its own logic for handling underlying disks dead > or deleted, then decide if its own disk needs to be deleted, such as, it is > fine for raid1 to work from user viewpoint if one underlying disk is deleted. We still need to propagate the even that device has been removed upwards. Right now some file systems (especially XFS) are good at just propagating it from an I/O error. And explicity call would be much better.