Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8385594imu; Thu, 15 Nov 2018 10:39:32 -0800 (PST) X-Google-Smtp-Source: AJdET5f1Hp9YPyAldlUa0/Ftem1yqocKx5gj28cpL13Dmyh/WSiZ9fyokeRmkrrj97fpIaw0rqpK X-Received: by 2002:a17:902:780a:: with SMTP id p10mr7649412pll.54.1542307172080; Thu, 15 Nov 2018 10:39:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542307172; cv=none; d=google.com; s=arc-20160816; b=BJKGa4sPCnV24zKlRNqUmwg07sC5Pe2i7HvKLz+hp+K118NhxXo3SplAxzmiydBPE7 L0J0wa0LFgT1gs2awlOIE3LpmSrg2VYS5k8iKc5YbowYj18J5wxDNfzq5RhVSjVh8rkR 52UmeY6XZ+GSLxLTaQJJjubDwyuUVJxfmwPy7vY7xEVvLehp/NaBISrVhYuwDtPKpsV2 HAR54Pm0vkOBWqZ8JO1yPtbquu9QEVndT1gLiyyJfn5Sumd0EBMY74AWfSPHxTUWNwoD arniljTrGnbGHZfmoaLMJA1u94SctuPIKOy7c4Hzlr0moTTRKRmNE71W8wB7RRt7zl51 Y1OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=s+h1PGMW8AGmG25SSRRoDX7YGcSulR3PXt4l/hTHmmw=; b=t1omXssISTa7do2h7oOe4loqI/4i3vugqkxfnaCWrBrR0/rSelFZYo1jEX/m6HuAT4 ZxmHTRmCzP9i0iFo3SxkTa6wRTttBNpF7CSTW8cKsXz92J4+ZRxH6z0TMeVi/nZWvYlR 7h4QItPCncZCWoSFo9gBhVB28MUA5GSPBzeb40gy92k0kbzPsg11sQAsGW8GB+OuUY3g zZvVHBTS49xOje425kyET9o4e1Rx72YJKxecTdPn9sWr50+3LYqV5j/a+R0cvTbOFT9j y1vOygujwUeINFVk74CqJcTp0WBLie9xw0lH3cuFCFSSj40VaeLXx8lppliD/9jQdxyM 8yPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=zHYb82Eg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m2si1129035pgh.560.2018.11.15.10.39.16; Thu, 15 Nov 2018 10:39:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20150623.gappssmtp.com header.s=20150623 header.b=zHYb82Eg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388751AbeKPErU (ORCPT + 99 others); Thu, 15 Nov 2018 23:47:20 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:41455 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727123AbeKPErT (ORCPT ); Thu, 15 Nov 2018 23:47:19 -0500 Received: by mail-pl1-f196.google.com with SMTP id p16-v6so9873430plr.8 for ; Thu, 15 Nov 2018 10:38:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=s+h1PGMW8AGmG25SSRRoDX7YGcSulR3PXt4l/hTHmmw=; b=zHYb82EgzXtDiZU1BixOA0CpGx1AudkyRl3YeedHmwhUrxH9weOIKSQ0+o2oi/Kc3Z 1BAjPBYwvkKQVfBp4djHDnxo3bOasAdYsiqRPd6bVj1aTIabG6U98IXKRZTt8SDroa36 tsyRgjns9bg+SP2E3SjdEIEskogsfFg3V8dGIu5BiS7I/rmFrfRxU0FsxKFUvkuukIRz 4/+wixXMg0vnN+NPQzq0qOiMa7cBVXXm28c4jleJe9uG1Q3w2yE+Vo5gLU8NRVQT9/U/ 88vL0yiufditIacLrHpmKYnnn8P2OXW6lgLPeK8g4PngwH16mafRVisSpBJzyZfdJvH1 /hGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=s+h1PGMW8AGmG25SSRRoDX7YGcSulR3PXt4l/hTHmmw=; b=KbJQH3R/BR/AVSKYqJr+ddEgFP7xex1kNy/Lnc5kQj+d514RNy4/UaImvjVlxHite2 nwnij+H5R+uuwTCrpzqTHA+UAJ+IqlOPPCYqsQLCWyPPK9tSjjI9GA4EWDW2i1iNos3M n0NDqtQ16H2bZoOtuAQUkqvpaISc1NxAGCFpiFst+t19tyFuBUA2udiDJYV5fF1zkUrD cWJWC0mlex4mzKszw61XcRx4vBzJYBS5JMMUmdZdKyVS2B1nbW6+C613kbD81uhp2oYQ fFDvGMF7yYgnHw5TV5X8CckZmCyQ9toyCghINaFZvzCLw/FcG96D64cgPFqkox9zorA5 BdHw== X-Gm-Message-State: AGRZ1gJR1kvb+r/xbFACKtpVCjeHAnWB5fjovCirMEUUrlcbpphrAmzA zvqPow0ZI0hyzRSi7NZIk2tXp8B4UaU= X-Received: by 2002:a17:902:8f8f:: with SMTP id z15-v6mr7452933plo.257.1542307103352; Thu, 15 Nov 2018 10:38:23 -0800 (PST) Received: from ?IPv6:2620:10d:c081:1130::11f6? ([2620:10d:c090:180::1:7813]) by smtp.gmail.com with ESMTPSA id 127-v6sm30854875pfx.91.2018.11.15.10.38.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Nov 2018 10:38:22 -0800 (PST) Subject: Re: [PATCH] nvme: utilize two queue maps, one for reads and one for writes To: Guenter Roeck Cc: Keith Busch , Sagi Grimberg , linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org References: <20181115182833.GA15729@roeck-us.net> From: Jens Axboe Message-ID: <77d1536f-3229-1225-c5ad-d0a928c222cb@kernel.dk> Date: Thu, 15 Nov 2018 11:38:20 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181115182833.GA15729@roeck-us.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/15/18 11:28 AM, Guenter Roeck wrote: > Hi Jens, > >> I think the below patch should fix it. >> > Sorry I wasn't able to test this earlier. Looks like it does > fix the problem; the problem is no longer seen in next-20181115. > Minor comment below. That's fine, thanks for testing! >> /* >> - * Need IRQs for read+write queues, and one for the admin queue >> + * Need IRQs for read+write queues, and one for the admin queue. >> + * If we can't get more than one vector, we have to share the >> + * admin queue and IO queue vector. For that case, don't add >> + * an extra vector for the admin queue, or we'll continue >> + * asking for 2 and get -ENOSPC in return. >> */ >> - nr_io_queues = irq_sets[0] + irq_sets[1] + 1; >> + if (result == -ENOSPC && nr_io_queues == 1) >> + nr_io_queues = 1; > > Setting nr_io_queues to 1 when it already is set to 1 doesn't really do > anything. Is this for clarification ? Guess that does look a bit odd, alternative would be to flip the condition, but I think this one is easier to read. -- Jens Axboe