Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp132342rwr; Wed, 26 Apr 2023 22:03:06 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5lsIXNywdV2hVIioTSKmwkem97ztRDh+vwDcgd6A0BqoHOaBi9SH9SlqENaG4QPX/6ixUd X-Received: by 2002:a17:903:230e:b0:1a9:7424:7758 with SMTP id d14-20020a170903230e00b001a974247758mr394287plh.0.1682571786384; Wed, 26 Apr 2023 22:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682571786; cv=none; d=google.com; s=arc-20160816; b=0T2pvVoomXsoe0TeBgwJJvpolvEYbmuP93YOXrMbMnf/AxG526kF2VKRnWxLJchVST T/jWvNG8GSWD/Wjpgi5Lq50HQIbHfPi7cBdo2UVcJ2WnQdtgkt4Nytbj2bWXl2hwhK4h VWOy1iGlnVvx3Ew0hXPR3gdd8PNBG7piVoIFvxScb1qq/ldFu0jitI3h8EtgN+IKo3A/ /fLBbRk/h9HFJ5ET/JnUitSjTl9Qe8tFWqhHPjrYrhh4VKyV3LDkeCvv17Q5rCivE+ho KqnBt6i7owRQOufsWCoWmaQCv3mqH32OqPd1vlDnoX90eK3lLlXT0cW+7IfQKr9lMJTb 6N9Q== 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=2s/RO9FptogVncj3HgpgSA6ipdhLtPAA7dorEW4s5iM=; b=B0GkrdQ/ambWbOHf8O0YGnNaDREht6ujxL6pAqB3aroVe3JxfL5wibiAq9vMjFHvRn 8ZKbh9dApEYpCc9FdpVeSfVQSokEwifC1JHyfX2YmHec2t0g8cn/bO5RwBt3R7/2XqPG f8jg9eXf2Npy5HNfBDhS5qBPRENHRVo6eUGlxd158Urj8PrH/2+r6/80ntKCr3fWfDCV 8BAp4KLKcgOfO/1y1CjWuNED8+YbDf4xOGBjLtP9FT5+Xcm85woX5SCgeI+8CfDT0j95 to5NYlfTvx1dib3FdXmTWzDSuu74rR2N/9OPu5zSwFlfvevxmSQvjZq3MvyBuOYirApR cdzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=UjKK7EFO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a17090a6a8600b002478b610a39si21141165pjj.75.2023.04.26.22.02.45; Wed, 26 Apr 2023 22:03:06 -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=@redhat.com header.s=mimecast20190719 header.b=UjKK7EFO; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242693AbjD0Evw (ORCPT + 99 others); Thu, 27 Apr 2023 00:51:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242671AbjD0Evv (ORCPT ); Thu, 27 Apr 2023 00:51:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 115683A90 for ; Wed, 26 Apr 2023 21:51:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1682571064; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2s/RO9FptogVncj3HgpgSA6ipdhLtPAA7dorEW4s5iM=; b=UjKK7EFOYFo4v7Eir1NqiptQvM4dLtsxR2ypzDw+CG+ijq9grJbkdRCvtS2Ck4ldBG0vk4 lZjGkYKt6Urlf6W+LsR8jZd8FFpHKvWTDvDJNEqoQ0YVtggpjQw+mHegbHCySF0zFbfhBG HqJnM2GI4ScpI9hJb0l2wicappn/sWI= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-255-07epsV5EOGqN665UvC9buQ-1; Thu, 27 Apr 2023 00:51:00 -0400 X-MC-Unique: 07epsV5EOGqN665UvC9buQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 237DF2812940; Thu, 27 Apr 2023 04:51:00 +0000 (UTC) Received: from ovpn-8-24.pek2.redhat.com (ovpn-8-24.pek2.redhat.com [10.72.8.24]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 569C1C15BA0; Thu, 27 Apr 2023 04:50:52 +0000 (UTC) Date: Thu, 27 Apr 2023 12:50:48 +0800 From: Ming Lei To: Matthew Wilcox 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 , ming.lei@redhat.com 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-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,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 Hello Matthew, On Thu, Apr 27, 2023 at 04:58:36AM +0100, Matthew Wilcox wrote: > 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? Can you explain what the feature is? And not see such 'issue' or 'feature' on xfs. The device has been gone, so IMO it is reasonable to see FS buffered write IO failed. Actually dmesg has shown that 'EXT4-fs (nvme0n1): Remounting filesystem read-only'. Seems these things may confuse user. > > balance_dirty_pages() is sleeping in KILLABLE state, so kill -9 of > the dd process should succeed. Yeah, dd can be killed, however it may be any application(s), :-) Fortunately it won't cause trouble during reboot/power off, given userspace will be killed at that time. Thanks, Ming