Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp304452pxm; Tue, 1 Mar 2022 21:34:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJznc+d3C2fviWWtI1xlHRsbF2yj6KH2Ans+rEPpNMAjBrRtJHTtDKIZ4xiNY5mTqYrO4Kpr X-Received: by 2002:a17:907:3ea3:b0:6da:6f16:bd9b with SMTP id hs35-20020a1709073ea300b006da6f16bd9bmr28198ejc.308.1646199254597; Tue, 01 Mar 2022 21:34:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646199254; cv=none; d=google.com; s=arc-20160816; b=UrJBH8sht7MBmvwr/u8uWRZByE7dFik1a4IS3PUk4iwrVEzzVetEGgT+ToU6wp59sU 1E9kzxvdGLuUvM5D7nxyMmigT96TxwmhF9C6FeFF/Ah0jScHX3xWJav4n8Vf22cKSYf4 kmohTomCEPxU0hodzlSM01E3cWcVCUpX5WydY0gFjP6j69iFpMmvs/DitqpBOTrpqeAi vU2oh5paxK19xj3Nc1vZ0ZfJ737ySNgEbfsCs15FjLcphFqBuOYfIXJYVxEcRj6N2SrT RYhO14qHaJqQxm+5DQqeYcqjshCDHBuMvqiMGqILWRll7w657UjlmSPS3BnKflKdqjkB CHtw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PSE7XhaCLoK3lvixPJtHiDdmfP+vYGOwXq3x81uSukw=; b=rla1iyoTQBFH/HQ4uwgXTB4V6zTpX8wiifZNsJ3eFkoNJouH51H66OrkZ4fHgZ62pk XKBgdFpQe0OFBgO3PU250zSeVcNlIrnLoMrChKZaLyf45zeBdsch2B16UwC8ds5asXHA +5EA53Nf21qwEEFU+z9tVBM3cpSKbGHq5VfAKCscurrCfrZz2Adm0BYl8KuFsEDvy7e+ wG3VCGcMdjZEDmp0kouziISbNysOXDiTQ7Q96NL3H17FSilrjt2ZXKpqLe7L/8zQ1fFf xPSem8Gxv+r+6uJvFwZqT/gS1E9xAE5YP420iwxOJPjj/GS5x4405XsrxRcRyJan9vgx O7Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dSJsgPpR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 i1-20020a170906250100b006b32e7c1ce4si8750283ejb.186.2022.03.01.21.33.52; Tue, 01 Mar 2022 21:34:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-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=dSJsgPpR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 S238791AbiCBAv6 (ORCPT + 99 others); Tue, 1 Mar 2022 19:51:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43770 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238783AbiCBAv5 (ORCPT ); Tue, 1 Mar 2022 19:51:57 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A83D513FB7 for ; Tue, 1 Mar 2022 16:51:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1646182274; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PSE7XhaCLoK3lvixPJtHiDdmfP+vYGOwXq3x81uSukw=; b=dSJsgPpRHCQ1jgbKljjd6pRUPrEFezAffRn2B8o3XXU3gPOdWucGtl3oJDo3kEFEoG07ub aZ9C23uZaqi+RSAM8RNXkIZ3vlYx/OzEXLuBYRV1DQu6CZP3gIEhH6Ue+ywT5BfBOHxIL5 861OQFA3DWNBKxv6EfQv6zvi52uEYyk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-645-BBzowO1OMtOEOJJbFaBeuw-1; Tue, 01 Mar 2022 19:51:11 -0500 X-MC-Unique: BBzowO1OMtOEOJJbFaBeuw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 051E08145F7; Wed, 2 Mar 2022 00:51:10 +0000 (UTC) Received: from T590 (ovpn-8-19.pek2.redhat.com [10.72.8.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4C0B0519BE; Wed, 2 Mar 2022 00:51:04 +0000 (UTC) Date: Wed, 2 Mar 2022 08:51:00 +0800 From: Ming Lei To: "yukuai (C)" Cc: Christoph Hellwig , tj@kernel.org, axboe@kernel.dk, cgroups@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, yi.zhang@huawei.com Subject: Re: [PATCH v9] block: cancel all throttled bios in del_gendisk() Message-ID: References: <20220210115637.1074927-1-yukuai3@huawei.com> <836f0686-4ac8-327d-2bab-64a762ea8673@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <836f0686-4ac8-327d-2bab-64a762ea8673@huawei.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-kernel@vger.kernel.org On Tue, Mar 01, 2022 at 09:54:28PM +0800, yukuai (C) wrote: > 在 2022/03/01 18:29, Ming Lei 写道: > > On Mon, Feb 28, 2022 at 01:40:53AM -0800, Christoph Hellwig wrote: > > > On Mon, Feb 28, 2022 at 02:11:30PM +0800, Ming Lei wrote: > > > > > FYI, this crashed left rigt and center when running xfstests with > > > > > traces pointing to throtl_pending_timer_fn. > > > > > > > > Can you share the exact xfstests test(fs, test)? Or panic log? > > > > > > > > I can't reproduce it when running './check -g auto' on XFS, meantime > > > > tracking throtl_pending_timer_fn(). > > > > > > From a quick run using f2fs: > > > > > > generic/081 files ... [ 316.487861] run fstests generic/081 at 2022-02-28 09:38:40 > > > > Thanks for providing the reproducer. > > > > The reason is that the pending timer is deleted in blkg's release > > handler, so the timer can still be live after request queue is released. > > > > The patch of 'block: cancel all throttled bios in del_gendisk()' should just > > make it easier to trigger. > > > > After patch of "block: move blkcg initialization/destroy into disk allocation/ > > release handler" lands, the issue can be fixed easily by: > > Hi, > > Thanks for locating this problem, > > Perhaps this patch should wait for the problem to be solved. BTW, please see the top 3 patches in the following tree: https://github.com/ming1/linux/commits/my_v5.18-pre-rc xfstests generic/081 can run for hours without problems, without the fix, the crash can be triggered in 10 minutes. Thanks, Ming