Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38376233rwd; Wed, 12 Jul 2023 06:59:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlE9ldzH1pLpg9+6rAbeAcmnz6cCDNozwe3UeHp/Dveqq6SJVKt94o1zJmtIffySI8a5Bhhx X-Received: by 2002:a05:6a00:4791:b0:656:c971:951 with SMTP id dh17-20020a056a00479100b00656c9710951mr2511834pfb.8.1689170364583; Wed, 12 Jul 2023 06:59:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689170364; cv=none; d=google.com; s=arc-20160816; b=UGroCcztmb597YAY3S66ZB0ycBW2M/KKMEDT2RbFofCQeDujpz/+v+2t38b63e0St7 lD+04EgccwooOIuGQMkACsnfIi0YikaYL0q70INRttAzKyrSWwPEn9K2GPE7VHnYLrm2 9GoiW8KjYz5FN/oe8mDCMxvHFwmXTLY4KghQdVAgqdCo8h8gneKQ2eA9usLK7oCEYiUS jAnJwHDXRgut75yQyFfHdAXFmDjQVS4KnLiFd3qZA2IKoVEa44QIGU+sqbj+qkD0HHvY mkG/I3IOIyX/0vthM44OnEALJrC1WNrZ0KwTltNJs7kyUc0kLpP2CFTc2y374SQwYwQO l0Dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=U02wd4htSqt7Y5eM5jWEdbMbt96esE2ftHqIXKrolbY=; fh=brZ7qUaq/hCWNRpABT41nJu2EPJXnQH7Kg2WiEEObq4=; b=0QsF1NhTVeQcPwnopXxY1pUYncGO/ymuIPSRnEHHicRrrJdJNgA0MgZqVOHnxOugDn sAWVmM5Ibq1aY4bMztXrU0fvrmsKclazhxAGQ4CC+UliZ9jTo+7EqJnCElr7IPeKTcqe 5dMz+CNNUc36dy0DMDk4sSeE1wyj91O1Zyv1irxvbTdpIJSPsKT6RFx8Ggy2zh0Ztz4H tixw1DGlofUBdeq6Y/goAQyQqOr2fq7lBSSiCa9BwGMx05RtIuFtKCH1JwIqmyFfwgBw hx3uxg/+1HZRFqwIun6aGnBiiLibUR/Vs7mAk/vFarbyamEnd4gnLfC5xphBmGvueraz pFTg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t15-20020a056a00138f00b00666669afe56si3443861pfg.250.2023.07.12.06.59.12; Wed, 12 Jul 2023 06:59:24 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232427AbjGLNTb (ORCPT + 99 others); Wed, 12 Jul 2023 09:19:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229596AbjGLNTa (ORCPT ); Wed, 12 Jul 2023 09:19:30 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3D4D5E65; Wed, 12 Jul 2023 06:19:29 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 67AE967373; Wed, 12 Jul 2023 15:19:25 +0200 (CEST) Date: Wed, 12 Jul 2023 15:19:25 +0200 From: Christoph Hellwig To: Ming Lei Cc: Christoph Hellwig , Jens Axboe , linux-nvme@lists.infradead.org, "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-block@vger.kernel.org, Wen Xiong , Keith Busch , Thomas Gleixner , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/8] blk-mq: add blk_mq_max_nr_hw_queues() Message-ID: <20230712131925.GA14596@lst.de> References: <20230712125455.1986455-1-ming.lei@redhat.com> <20230712125455.1986455-2-ming.lei@redhat.com> <20230712130017.GA12417@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,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 Wed, Jul 12, 2023 at 09:16:11PM +0800, Ming Lei wrote: > The problem is that blk_mq_alloc_tag_set() forces to set nr_hw_queues > as 1 for kdump kernel, that is why blk_mq_max_nr_hw_queues() has to > return 1 for kdump kernel. Well, let's fix that first and work from there. Same argument against that deep magic applies there as well. > Thomas, can we disable managed irq for kdump kernel and switch to > non-managed irq? Then we can avoid driver's change. I'd suggest > this way if it is possible. Why the heck would we?