Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1011530rdg; Fri, 11 Aug 2023 07:11:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFn5X4fn2RYqCd7PP1907AQJn81RLzInfkDxbSdDP6Mbm9Q3fj7fE+3MxdLJ8WtrgMpfhfH X-Received: by 2002:a17:902:e546:b0:1b8:2537:542c with SMTP id n6-20020a170902e54600b001b82537542cmr1862688plf.43.1691763059912; Fri, 11 Aug 2023 07:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691763059; cv=none; d=google.com; s=arc-20160816; b=wRycBE6NrPdakfv4bxPw+2yqIvVMGYdpa7qEBo/FDd2UGE5TtTZ4GsXUsCaJ9Ri307 /d7XIPhXAJAIEeUaNfHAhlGrt4X53Zfpm61C5HYDNAl2T//4hK8fZRQLQ6rv5spGVoGN jeas7lu3bOC7CG3crnJXM5yNUfZJuqH5Llh5fgWYJL5dAqabWBZD8QEDBp0zhvBzQX1I kOiEd3mcVbsZYSuuqV+cBTbBoXe2S0doqo5JKWzKXYfXp2OjBreC2M6EHTrLxkjNqrN9 ja5OsowInxt1wfveJVdg1AhMZEtjdOxpM1n9NrFfToppPE3kK9GfojMpa/xSZH5Erkqd vy4Q== 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=wqPO3fjYCFSZoxri1VRwX01Ep7+zcmQMJe0Oi2gC3UY=; fh=SFjwvpnstUbt/oEEGTCwJpW/0ke63Ixa8Zuyjvyof5M=; b=D/EUxZ1zjiPiv0TXwYIsWGqXv2fj+Sg0qj3dhxs+S7/+KSqwI8xqNOCrgEh6V1Wz0L V5j/VZAGFtucY3l2qAncWtoDttTB6nJCt+9UKDU/d8GToZfcddPLPOjGoOuKwzUxzAz4 s77oTYVxKAe0htg7MBeZQIKU6owXpZU9iN6z7FCGWqZa+teT6n6dk1gVngvpiFcKOt9U JHx+PrZGVJy79AICTG4HMGLCW7A8Ak3h8tloR6zB+uS7620Vn8rw/mi4XN3qBUwuVFF8 kQeFOksofmMhALfGSAmGXWd4aXvvldExEkLqIcw+kTUJ3DPGuHuYdk5MVBjiauQ46qv3 m/eA== 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 s20-20020a170903215400b001b9c992945fsi3283540ple.555.2023.08.11.07.10.46; Fri, 11 Aug 2023 07:10:59 -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 S232879AbjHKNK5 (ORCPT + 99 others); Fri, 11 Aug 2023 09:10:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229994AbjHKNKy (ORCPT ); Fri, 11 Aug 2023 09:10:54 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07FF730CB; Fri, 11 Aug 2023 06:10:53 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 4DD1867373; Fri, 11 Aug 2023 15:10:49 +0200 (CEST) Date: Fri, 11 Aug 2023 15:10:49 +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 , linuxppc-dev@lists.ozlabs.org, Dave Young , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, Baoquan He , Pingfan Liu Subject: Re: [PATCH V3 01/14] blk-mq: add blk_mq_max_nr_hw_queues() Message-ID: <20230811131049.GA20991@lst.de> References: <20230808104239.146085-1-ming.lei@redhat.com> <20230808104239.146085-2-ming.lei@redhat.com> <20230809134401.GA31852@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 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, Aug 10, 2023 at 08:09:27AM +0800, Ming Lei wrote: > 1) some archs support 'nr_cpus=1' for kdump kernel, which is fine, since > num_possible_cpus becomes 1. > > 2) some archs do not support 'nr_cpus=1', and have to rely on > 'max_cpus=1', so num_possible_cpus isn't changed, and kernel just boots > with single online cpu. That causes trouble because blk-mq limits single > queue. And we need to fix case 2. We need to drop the is_kdump support, and if they want to force less cpus they need to make nr_cpus=1 work.