Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp44676rwb; Wed, 17 Aug 2022 22:23:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR7mEM+eR3mQreXfOLf/aApZkRj4Zs/kdcpjjNU6kixQTYBT8tYV6fuIkYcQRB1mVRnPoRh8 X-Received: by 2002:a17:902:b581:b0:172:a34e:18fd with SMTP id a1-20020a170902b58100b00172a34e18fdmr1437521pls.163.1660800235794; Wed, 17 Aug 2022 22:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660800235; cv=none; d=google.com; s=arc-20160816; b=DkwTSOViyB7SWift04JW2wHgKbZkUUgqAw8WiwfIrZuvf1qqdU4ahZtV+m2cUpd602 VcRdC4Iad/XSbxdQUiDY1EU47KFzBVhw9O98s0cWAS6ciUUwv2hdjjGiySsLy7BNifAi ZJuTNtvIxJJQsxiXDESCO3rIHAYBKNyIfmtvaTOWt9EZl8+436WT/3e7h1GmOqevxtOn FkJMod9dgmSgH9i4JCn2AhuJe1/bClCje97NAHhIZMjKiwT+V3+GlO7sdlmVJLZJ8jyb nYR/64ACh2anyhy/221hf7x66MngTiP/fKctJd6KcN9EDQQWSC94EiM+6laPTHQyuaAJ myxg== 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=VTzKvXSmWh1TMhjc0Co13nZ/hVTaoOofQvw86K3S3UM=; b=La7o98l9eodcMi8x13+OU7rnHNBYMuPdgocSMnPOIwjSCnfAQ1ThHZIeSgBhF2Zgfu 3VKLf3s6CPr88SPATOundQh8wrR6oNgzaG/1/FSaN7/a+NFZ+MyqDhbkzBJrbEL1zZBZ W1NHtntHaPvvHniR7jEv6pDwjwWrpkDh2gmctLXjnXBWlPhEzqOGO18mJMLkwrZZCMcH o1Ph+JEi0kBSMVz+tXQV93Znfnp1nKKXUqsNUjN4o8RG6UIoUZklPmbwNucbjgBAKbWS 9Bzh9hcw9d5evbL9m4A97CwG+uPsj29l+Jf35ftPBza59aAp8qmEh/0Al15SPW0uIcNE tIUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=ORgnap2b; 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 q13-20020a63750d000000b0041b64ff7fe9si651517pgc.79.2022.08.17.22.23.43; Wed, 17 Aug 2022 22:23:55 -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=ORgnap2b; 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 S243501AbiHRFPj (ORCPT + 99 others); Thu, 18 Aug 2022 01:15:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243495AbiHRFPg (ORCPT ); Thu, 18 Aug 2022 01:15:36 -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 71283AB4DB for ; Wed, 17 Aug 2022 22:15:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660799734; 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=VTzKvXSmWh1TMhjc0Co13nZ/hVTaoOofQvw86K3S3UM=; b=ORgnap2b+CxeMIxXdJj5tFAv25vuRM8nnf+428+Ew7NbCLeec1SxgCtqtLZiYt8g+QQKCr GSUANJX0DYePlqbnebw21jXciYkPwH2lYHi+aFi+AC4vJuUJJeywypkW+P1MHlmpBpYQ0D hNyxcfyd604rtBN3/K1VMF0AXU/PRmo= 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-277--OvbFB14PB-XdV3zUfhK1A-1; Thu, 18 Aug 2022 01:15:29 -0400 X-MC-Unique: -OvbFB14PB-XdV3zUfhK1A-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B86B13806705; Thu, 18 Aug 2022 05:15:28 +0000 (UTC) Received: from T590 (ovpn-8-20.pek2.redhat.com [10.72.8.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DCAFD2026D4C; Thu, 18 Aug 2022 05:15:17 +0000 (UTC) Date: Thu, 18 Aug 2022 13:15:12 +0800 From: Ming Lei To: Chris Murphy Cc: Nikolay Borisov , Jens Axboe , Jan Kara , Paolo Valente , Btrfs BTRFS , Linux-RAID , linux-block , linux-kernel , Josef Bacik Subject: Re: stalling IO regression since linux 5.12, through 5.18 Message-ID: References: <35f0d608-7448-4276-8922-19a23d8f9049@www.fastmail.com> <568465de-5c3b-4d94-a74b-5b83ce2f942f@www.fastmail.com> <9f2f608a-cd5f-4736-9e6d-07ccc2eca12c@www.fastmail.com> <5426d0f9-6539-477d-8feb-2b49136b960f@www.fastmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5426d0f9-6539-477d-8feb-2b49136b960f@www.fastmail.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, 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 Thu, Aug 18, 2022 at 12:27:04AM -0400, Chris Murphy wrote: > > > On Thu, Aug 18, 2022, at 12:18 AM, Chris Murphy wrote: > > On Thu, Aug 18, 2022, at 12:12 AM, Chris Murphy wrote: > >> On Wed, Aug 17, 2022, at 11:41 PM, Ming Lei wrote: > >> > >>> OK, can you post the blk-mq debugfs log after you trigger it on v5.17? > > Same boot, 3rd log. But the load is above 300 so I kinda need to sysrq+b soon. > > https://drive.google.com/file/d/1375H558kqPTdng439rvG6LuXXWPXLToo/view?usp=sharing > Please test the following patch and see if it makes a difference: diff --git a/block/blk-mq-sched.c b/block/blk-mq-sched.c index a4f7c101b53b..8e8d77e79dd6 100644 --- a/block/blk-mq-sched.c +++ b/block/blk-mq-sched.c @@ -44,7 +44,10 @@ void __blk_mq_sched_restart(struct blk_mq_hw_ctx *hctx) */ smp_mb(); - blk_mq_run_hw_queue(hctx, true); + if (blk_mq_is_shared_tags(hctx->flags)) + blk_mq_run_hw_queues(hctx->queue, true); + else + blk_mq_run_hw_queue(hctx, true); } static int sched_rq_cmp(void *priv, const struct list_head *a, Thanks, Ming