From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A442EC32773 for ; Thu, 18 Aug 2022 05:25:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241367AbiHRFZQ (ORCPT ); Thu, 18 Aug 2022 01:25:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53176 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237986AbiHRFZM (ORCPT ); Thu, 18 Aug 2022 01:25:12 -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 164F34CA37 for ; Wed, 17 Aug 2022 22:25:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1660800310; 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=6rxhzxA1d8E+PIuuMRI/DOACXqYZZN6j/zwh1o5qvZc=; b=IchFtbA41g9/XoU5a9//SkTMizY3siPypGkoNXCINUjB9b2YPpo84RGAuTFMys0SyePSoT 9kThuJRyVXUebYuGWWKaRh6HjZUA1QvnvNH1HWsDBBuaTSuZ7m+XTPvtMgidz/1OzLQplv 9bS0/QepweGEN/kmMuQQkUanNIY5rlM= 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-121-sB2Y5UMzPia25Rg2AitPzg-1; Thu, 18 Aug 2022 01:25:07 -0400 X-MC-Unique: sB2Y5UMzPia25Rg2AitPzg-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1D02D802D2C; Thu, 18 Aug 2022 05:25:07 +0000 (UTC) Received: from T590 (ovpn-8-20.pek2.redhat.com [10.72.8.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7C1559457F; Thu, 18 Aug 2022 05:24:55 +0000 (UTC) Date: Thu, 18 Aug 2022 13:24:49 +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.79 on 10.11.54.5 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 > Also please test the following one too: diff --git a/block/blk-mq.c b/block/blk-mq.c index 5ee62b95f3e5..d01c64be08e2 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1991,7 +1991,8 @@ bool blk_mq_dispatch_rq_list(struct blk_mq_hw_ctx *hctx, struct list_head *list, if (!needs_restart || (no_tag && list_empty_careful(&hctx->dispatch_wait.entry))) blk_mq_run_hw_queue(hctx, true); - else if (needs_restart && needs_resource) + else if (needs_restart && (needs_resource || + blk_mq_is_shared_tags(hctx->flags))) blk_mq_delay_run_hw_queue(hctx, BLK_MQ_RESOURCE_DELAY); blk_mq_update_dispatch_busy(hctx, true); Thanks, Ming