Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2036326pxp; Fri, 18 Mar 2022 01:23:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzolzkKQbyDbQlrwCLI012sHm9epw4UK9kf4crtYLR5x35j3zW1Tt9nFHMJyw7Z5IV0xjOS X-Received: by 2002:a17:902:d4c1:b0:154:1273:6ec9 with SMTP id o1-20020a170902d4c100b0015412736ec9mr1201777plg.148.1647591814974; Fri, 18 Mar 2022 01:23:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647591814; cv=none; d=google.com; s=arc-20160816; b=Ng6ah+qnhEvr4ZYJDjDEmoeyaJGDR3BeH07uDJyFO3vnWJrwW7+lDAmVectom0TkHT m6LmX3DicFIPsSw7zsHvs4SxFbQ8B18wCUuXuPclCtlHTOQG42qD3UhpihvY8wUHxo1e DLOhCSF0M+RUe1nmCLRFphWoDr/HsLe2Yuhe/d7KQBQg/WFfN0V1jdxtZaZXtCwFYD0f 0OG8xiL5X8W19Vg3Kv9TrBQX01uy8BUXYY8h+O8su778E83fXARIusWDJ5D+/Mknkawp 4Y1cM6+LFlwGC7y2wUSTSu0GHOyZt3r03LGcbt/PPkhVtHVdPsRSyv3eEKzt3Aee5z4x LhEg== 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=dRxKY2ALGuJ0XownOAjggWtKbSTTBHbjSbBWPLWoaKg=; b=y4XtN0pLTUoht2H9iTelEtte8eR0DMQKu99S3wsuE52sTOTO7kKtKIhwl59uaVAlf5 tlTNZLUt20RJTQYmTyDB4FrZIP8MxtTVNIig3Cl6+SzeB5SAd7W50c6W4hqgYdCe7+Eb pFoUyYz2hAaRquTPUX9L1zqmrhH+SP2y08Rl9ziX5MJM/bfCvJNaJi72SAzcZxOGx9+f qbFgt1Zsrx+DuIHrfb9swKeMEEAB3zMk8WftQn62VfsAYWk2ZDbegQE6GizBRtAUh6W8 ByTP6e+cTKNbnyuEvsJzUCeDftgMsxT+JqSQgDTIm3zIPstsKF0JO/2A+ckGR1y2bhrK +BIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=A7bsFf8i; 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 w15-20020a63af0f000000b003816043f028si5201800pge.541.2022.03.18.01.23.22; Fri, 18 Mar 2022 01:23:34 -0700 (PDT) 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=A7bsFf8i; 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 S232901AbiCRHFl (ORCPT + 99 others); Fri, 18 Mar 2022 03:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232878AbiCRHFj (ORCPT ); Fri, 18 Mar 2022 03:05:39 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1C08DEAD for ; Fri, 18 Mar 2022 00:04:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1647587059; 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=dRxKY2ALGuJ0XownOAjggWtKbSTTBHbjSbBWPLWoaKg=; b=A7bsFf8izkMxu/V45gHtDxv47MfjIMKoBpizja7G43wNQyAjsOXceHI8T93oBoCq9YxAEu qQHko++Qw8MaW8a2pFAQEeWyT+D3ij6KIOLK6/6A/DzN4FDgIscS88GEM21he1a9iotj3V u1H/zMBux6iTBZ6YBm2iyr0MPHRw6MA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-370-jfQBtssXPX6_DDe79gYaYw-1; Fri, 18 Mar 2022 03:04:17 -0400 X-MC-Unique: jfQBtssXPX6_DDe79gYaYw-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 00B11802809; Fri, 18 Mar 2022 07:04:17 +0000 (UTC) Received: from T590 (ovpn-8-29.pek2.redhat.com [10.72.8.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4B7E72156897; Fri, 18 Mar 2022 07:04:06 +0000 (UTC) Date: Fri, 18 Mar 2022 15:04: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: X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Spam-Status: No, score=-3.6 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_H5,RCVD_IN_MSPIKE_WL,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-kernel@vger.kernel.org On Thu, Mar 17, 2022 at 07:22:04PM +0800, yukuai (C) wrote: > 在 2022/03/02 8:51, Ming Lei 写道: > > 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, Ming > > Now that the above patch is landed in linux-next, do you intend to fix > the above problem? Or I can take over if you don't mind. Hi Yu Kuai, I will send one fix and your V9 later. Thanks, Ming