Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp411039pxb; Thu, 12 Nov 2020 06:56:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXZ/06Jgi0/GSLO7HOnLc/YtBsSBumKBShi4YpUtYL4zKwQscEYLR/EEzr5FEjvlwPlR/j X-Received: by 2002:a50:a6d0:: with SMTP id f16mr82282edc.135.1605193002842; Thu, 12 Nov 2020 06:56:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605193002; cv=none; d=google.com; s=arc-20160816; b=bOQcHKFotUby6QXuQBTKTytVWgazlVmibpR+Diy/r1Pp6ER4IDs9hr8oqyzVV78pw8 N/L0QvTUNg8F0hhWrC5uA+NMAvKXZmqQX9BrjeyPvJs3oHZfoctpZ7H3P80ZLNQEv7+I j5qM3xVNQc5yupH6rXERzjqp9uVUQrEbwHHZptMKXvqANfvwYFZIhckYFi8LMzHNeRmJ X681JBmICiYpiL4VHnR968uut9w2ZDfIpvbYODWo6vLOT0LGjuVQk5bPrJlGvYB975yw laGqiV0JjZS6nno87uvXXz+v+oHTweeCVzYOZWqd6e+gPMbW74vkwJs4smGyo286KaNc si1w== 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=/KlAWNAD1+tCSwffPMeMfbxtqiL9CCu/YpbwvOwXbAc=; b=s35JGHZ0QzZX49nIbGi8IgeP8V1IFRDP74iNqPM7po5P1/E6CD4tqpbW33b3C2fmzt sA8dHmVQRYTpiaRpFNtkNuh3WPr1AoFzJ7WfdVPcZQXX93dLrmxeDb+B9nEF+YC1GqXO sF29OE2Dk4qRgrPbv/eHs9mWDCwFY40YPfknoqdGFoFK1x7yzeBXk1YouTxplyCbhwvO cBBaN8m++zmQ8xesEY0i7EyBsY2OZ6t8ppZTGc069+IQEjFwWwbPkd9QRFfyQtph2rNk zVNLjKV+9tEeX/bS9niaiWxRDq5GzbbgVvpHnaKhXbWvj4fGm8aaO6FDP0+1d0G4TKH3 VIzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XHXS4JsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hr40si3483973ejc.353.2020.11.12.06.56.18; Thu, 12 Nov 2020 06:56:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XHXS4JsK; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728210AbgKLOxe (ORCPT + 99 others); Thu, 12 Nov 2020 09:53:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:58502 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727035AbgKLOxa (ORCPT ); Thu, 12 Nov 2020 09:53:30 -0500 Received: from dhcp-10-100-145-180.wdc.com (unknown [199.255.45.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AC25020872; Thu, 12 Nov 2020 14:53:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605192809; bh=/KlAWNAD1+tCSwffPMeMfbxtqiL9CCu/YpbwvOwXbAc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XHXS4JsK9KcSqUL53gxBe0I5Ye7FAJB+vXCaW9PnkTMOBtYLg6FyiBsaS/oJkSBFT JpdUJCFvblA70JyHGQSRfQ5waI7nqiPwsn9+NTiB8KUZXJnMo0yJBXqBtILUWHpFfp qhJ04+7XMoJReY++YMN80dPYrgnHiT2FSjHR+Mvs= Date: Thu, 12 Nov 2020 06:53:25 -0800 From: Keith Busch To: Niklas Schnelle Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Jens Axboe , Christoph Hellwig , Sagi Grimberg Subject: Re: [PATCH 0/2] nvme-pic: improve max I/O queue handling Message-ID: <20201112145325.GC2573679@dhcp-10-100-145-180.wdc.com> References: <20201112082302.82441-1-schnelle@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201112082302.82441-1-schnelle@linux.ibm.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 09:23:00AM +0100, Niklas Schnelle wrote: > while searching for a bug around zPCI + NVMe IRQ handling on a distro > kernel, I got confused around handling of the maximum number > of I/O queues in the NVMe driver. > I think I groked it in the end but would like to propose the following > improvements, that said I'm quite new to this code. > I tested both patches on s390x (with a debug config) and x86_64 so > with both data center and consumer NVMes. > For the second patch, since I don't own a device with the quirk, I tried > always returning 1 from nvme_max_io_queues() and confirmed that on my > Evo 970 Pro this resulted in about half the performance in a fio test > but did not otherwise break things. I couldn't find a reason why > allocating only the I/O queues we actually use would be problematic in > the code either but I might have missed something of course. I don't think you missed anything, and the series looks like a reasonable cleanup. I suspect the code was left over from a time when we didn't allocate the possible queues up-front. Reviewed-by: Keith Busch