Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp78246rwr; Wed, 26 Apr 2023 21:02:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7trKSMjxRkQEwXiTEVC8+rtzvA7EdrNKluiHHoLs39ugSebl1d0P4fZQs0N3Mayg856r4d X-Received: by 2002:a17:90a:f598:b0:247:714e:94e5 with SMTP id ct24-20020a17090af59800b00247714e94e5mr5546785pjb.23.1682568145932; Wed, 26 Apr 2023 21:02:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682568145; cv=none; d=google.com; s=arc-20160816; b=mxd0bPFFams+XpEJFVuPq4BhYge1f3+Ch5nRu+D7aQeK0Swm6YPHjXIT+FTYnXWczf Op/pchCmVxyyMvkSRQxS3xd8kaCREovGDwyFwOQHEEiAUQeK/O0KeWFZfH5IUKivFau+ fLqTGtXbY1iqWkQ2Vep+yOxy8kGWHKOWWyNSUZPQSCf0bYzEsA+6jDWwzxy/kLnX32W2 m5z71+FGOTuVDQWN0/YjAT0BmytESUeH/Xiiq7tw6ESfckXP2Yu5NKl/ILa2WiZWC/Tu 17sKKJRsxFJL8wK0S1RNfCzAyWYTX8mF4gwOI6/JehkXnsIs6C1Es1nQXo6pbaZRKLHJ p/4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=M9m5Rfw4WyAfUq3Lq1g416KW1zPboz2ufjX48+QsLeI=; b=tR+rkQktWegz9aWhdtewDbAwO5rUc83059cSIClIax1Rcb9UQs3KLTTC2jkSPz12NM IiAcJBKEDHOdHqbnl9CaOeFAabGSCDFA7QbBVlkejsUwEiR4wFBfIEY8ysKbJyfz8Y+I ajLJD2YEQLAGCIz3AeDBa+pvGpaBjUFpuIIpQ82DIt0PYNCAFx6cyVU6PGz31FCbcHk4 2Z+77JQzJkz77yiPy7vEJoWozyT0wKtCA/bZyCrtaAuow0YKPMJ3ypbb/AbhIZAoqIiJ l6n3X2Tc/pYs7IwAmEn8hP9rXIngyInBOh4fJa39xNQP69bbI9D6L1BgDxgkxtMiHCML 8j7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=J8SOQNMg; 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 gc3-20020a17090b310300b00240d3dc9346si17592776pjb.41.2023.04.26.21.01.54; Wed, 26 Apr 2023 21:02:25 -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; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=J8SOQNMg; 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 S240499AbjD0D6q (ORCPT + 99 others); Wed, 26 Apr 2023 23:58:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236396AbjD0D6p (ORCPT ); Wed, 26 Apr 2023 23:58:45 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 773122683; Wed, 26 Apr 2023 20:58:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=M9m5Rfw4WyAfUq3Lq1g416KW1zPboz2ufjX48+QsLeI=; b=J8SOQNMg1f4YwpmOHxDfwyMDe2 uCczSn4NUbhU2J7R2M++JwLipvI/DwKTROiGWvgj5+wccGzlcivAzjznESt1zi/KkJBHA+3BKnLn3 3xw/yIEQVX4prPqRJQmQEX+B9Q+g3ojHId0plFCGM1tLRlAdvxQQudukYzQ/ivDReG47IKSPp50s2 OEaLRGRwPVaWZhIHGR6MOHMZhZKXxZMsew+Utbq2Z67zJ79mYL9rnlEsHKnLF7wuvqn6Sszmjyszy pPjv7SskZUADaBdJyDtGsw7NnyWrD2Alzije2BK/gWFSr+Up44U+yhyZBWVEUtFxxjWucVZLwrkTa TbyJVy1A==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1prsmC-0038hU-Ar; Thu, 27 Apr 2023 03:58:36 +0000 Date: Thu, 27 Apr 2023 04:58:36 +0100 From: Matthew Wilcox To: Ming Lei Cc: Theodore Ts'o , 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 , Christoph Hellwig , Zhang Yi Subject: Re: [ext4 io hang] buffered write io hang in balance_dirty_pages Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Thu, Apr 27, 2023 at 10:20:28AM +0800, Ming Lei wrote: > Hello Guys, > > I got one report in which buffered write IO hangs in balance_dirty_pages, > after one nvme block device is unplugged physically, then umount can't > succeed. That's a feature, not a bug ... the dd should continue indefinitely? balance_dirty_pages() is sleeping in KILLABLE state, so kill -9 of the dd process should succeed.