Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp2725808pxv; Sun, 27 Jun 2021 07:00:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhX88alVOFnaOhK1Bfva1DA6VbYxh6f7hCaOOxsqilEOLaRFtz7zWNGCGDJbKO5aI90kfW X-Received: by 2002:a05:6e02:20c3:: with SMTP id 3mr14148800ilq.131.1624802454407; Sun, 27 Jun 2021 07:00:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624802454; cv=none; d=google.com; s=arc-20160816; b=cEl+wsQRjUm3/5ZBXDjhqf1AB/uSdQ9LErHuuAKd0gKj+cc4crjBgOPXrzOItum3mZ nICCba2h8zRUODC5MxnMF7IO1TdXbe0OG1zo64OZMhX12FGBKewgkRXjWgEYd5WIWbwb +mwduNcmiFqERYfANz41rxCbFCnJVVHBV65uDWiVnth/jsF9Nf1aKQcbwvh2W5DvaRX7 95yE/Y+aS0pGla0R45/HPzMxNXcmTz8i3u8uLEgXMok5crvfYRGp2CkdM/NDAGGzyFkH xd4/t606tPImuUxXMP5pE7WGKWXgldcnoBbSbyftZwyl4Nu+IPq54+ArGPd0g+2I4dMl dNEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=fJSoA46EGJPMh4KCGh0AvMNTym/VRIZfvgO78Nh3WHY=; b=xWQOpfiWWeNsK78x+52cG/gVkwO0BO4wnZcWLd/y+i6C1uXesW2TCvXhWuwovrvRrq 2QuerFFzvGkiUh6x4ChbwyBVnvLQOWIr8OT/4KYjzZjtOvkSUAKo4jjEWuwi1JUDOehT n4Aeo3Uc2Zs5Ko14hcOs2SKR5XRt3zyT7bzvBvV1XexOWPaPC4Nyz1Y4ZITyBtomXuEb fA7aYBk+yRHynf075PfZiF4J6ugl1C7ZBxAPxWCAAw8RowrbQkGyK8iQKrUqzWEPPscC DxkKt9H1FqNEAu7NWlbW0CCaA3x6loPuxX6rChKU9wsQwIWV+znXfkB7p1hxu9cNcV5J SkqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XFUj04S1; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z13si14165599ill.61.2021.06.27.07.00.41; Sun, 27 Jun 2021 07:00:54 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=XFUj04S1; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230398AbhF0Ntv (ORCPT + 99 others); Sun, 27 Jun 2021 09:49:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50978 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbhF0Ntt (ORCPT ); Sun, 27 Jun 2021 09:49:49 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31543C061574 for ; Sun, 27 Jun 2021 06:47:25 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id m15-20020a17090a5a4fb029016f385ffad0so8618181pji.0 for ; Sun, 27 Jun 2021 06:47:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=fJSoA46EGJPMh4KCGh0AvMNTym/VRIZfvgO78Nh3WHY=; b=XFUj04S1IvtMBMrNxSHUrQdfjMsTK6ceV/VmG9GdcBQK5aWjQ5+rf3Bk8ABUqyq23x /cPSijpfIZl2ccuqgsz+Ik5g/4Q2qB2I6k60ILhUViJmUOZoJs3lCPwNxugWrCLe9ufg +G9rfB+d84i69spQRtCf+7paphH+5I4seXk9WyYmjaPyllIDKEFKBemcokIRTCMr+cbn 4tUaBMm65rRMBNxmAHiqs2p4YM++/Td1PM1Tb92KktIpC+6kIIfMBCYu3hSofxuL9++o DVxmsHWThe9fA6Y3rQTzepjOwb2HoMXdimzpgiLR9VZrcWLjllVbNL0RsnQlXcEiQAF/ vLcg== 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=fJSoA46EGJPMh4KCGh0AvMNTym/VRIZfvgO78Nh3WHY=; b=MJoaR5r+tV/6wbHdmUbRwSsJe1pYDWClRAl65cvMqjLhrZ6cLDvs8cg02JJrlAPz0M 1Q5fu0B31ys13JIlsdpgGj+ZsZ84mbLNk/tKL6tjTP+irSDq3rNEbx1aW/8AfdqgoKpl uJ5lQP2D7N+y/I3cbVEx8a42yN3jAsDiptArrW3+XkmWcLtA/Em8hkOfA2JJ+hcY66rH /FG7nWpLXWnl9U5zq1R6Z6V9L1cOR/27anlkjSiJJiMiA23lV3K6D5hMp92o7Lizhevd Tiol0HDYZcqRqgcpOHuv4WGm2o+W7j58GL2Of7YgNeG0/7tEEb7ENuUefbkb1B4jjofA jxtw== X-Gm-Message-State: AOAM530B7xQ65UhHFwdiCsBN7YV33P0zAoJ1tWIBnzbTOOZG4ZwGapm/ biHeu68gDvldJdallHUOgRg= X-Received: by 2002:a17:90b:1d06:: with SMTP id on6mr21356378pjb.149.1624801644619; Sun, 27 Jun 2021 06:47:24 -0700 (PDT) Received: from [192.168.1.30] (ip174-67-196-173.oc.oc.cox.net. [174.67.196.173]) by smtp.gmail.com with ESMTPSA id s20sm7628116pji.19.2021.06.27.06.47.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 27 Jun 2021 06:47:24 -0700 (PDT) Subject: Re: [PATCH 1/2] nvme-fc: Update hardware queues before using them To: Daniel Wagner , linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, James Smart , Keith Busch , Jens Axboe , Ming Lei , Sagi Grimberg References: <20210625101649.49296-1-dwagner@suse.de> <20210625101649.49296-2-dwagner@suse.de> From: James Smart Message-ID: Date: Sun, 27 Jun 2021 06:47:23 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210625101649.49296-2-dwagner@suse.de> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/25/2021 3:16 AM, Daniel Wagner wrote: > In case the number of hardware queues changes, do the update the > tagset and ctx to hctx first before using the mapping to recreate and > connnect the IO queues. > > Signed-off-by: Daniel Wagner > --- > drivers/nvme/host/fc.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) > > diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c > index 8a3c4814d21b..a9645cd89eca 100644 Makes sense. Thanks. Although it does bring up that perhaps, if the hw queue count changes, thus it no longer matches what was set on the target, the new value should be set on the target to release resources on the target. Note: the same behavior exists in the other transports as we all started from the same lineage. So those should be updated as well. Granted you'll need to break out the queue count set and checking which was done on fc but not on the other transports. Reviewed-by: James Smart -- james