Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1774194pxb; Mon, 23 Aug 2021 04:26:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykrABZpGvY/+USHMSTlV+SmcV6wJcCLHyY6XnkkPFIgkV2a8uQLUPeePBVlHE+C7ev4M7J X-Received: by 2002:a6b:d20c:: with SMTP id q12mr26697370iob.121.1629717964216; Mon, 23 Aug 2021 04:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629717964; cv=none; d=google.com; s=arc-20160816; b=St03zi9iJUgok5Us0+N0q0vU4VH3CPpPoWbLveSscC32+dheTCB5m03p3trjWinVn9 DiOhixqvdHzbr2s5GuKZAxr6WD8qvjJ20nKlvZGLrI5vsfbUuVaE3yUxS37QE/WOg4hF P43fkb8Gf2Vvx/cMHRTSETCqMa19HqvXGGpwInKlYykgXhuy6jZO5VEyzVOrbpFypYWk rdoaJDNfqV7pNtU9glEdC9k3sA7lxum0IbynyVASUnOC/3PqMGMLX3RMHc9qLqyKm9n/ dzUVi98ggtgL2JSATTkUUSLEf3DoToAFHK/9VBTcvileWBDgU84ONYhfmtgaKfceFtJ4 bkYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature:dkim-signature; bh=EayIZPvEx8NBX6gVMYZJJQtq+PDoTIWp/jqWnTRrcoI=; b=lbM5O8d2hx/PF7IjKoLEXAhvFFDYQgIlw7XA1r6ELFVidoGHpPYV0cupe9NkaLML/G 6z25+VzibmXQ5ZRp0gsDcKPjJfKK2loE0rsEoiiKiQ+irVoxPU8mdWteV3HlUOuVOEFo 8m6XsNgj2n9qYznzo91GgalKDOFE5ShYWUoBuTINuFjFq33XUB8/G8T1klYMYHAK3u4R JipEessB0rA9Z15SggCTC/BiZqBnBSRCLzHQVlLikSwxJ0yHNN8jTPChp0SpR05KUBow TXdCqaGuR+9DG9cCfB33yZajaNGG/Z0FcwPzsRSkBUGmFztSKBqh7mcuaR/KWkmdZvdr B/6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b="oRNFq04/"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e16si14872125ilm.91.2021.08.23.04.25.53; Mon, 23 Aug 2021 04:26:04 -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=@suse.de header.s=susede2_rsa header.b="oRNFq04/"; dkim=neutral (no key) header.i=@suse.de; 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=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236759AbhHWLYp (ORCPT + 99 others); Mon, 23 Aug 2021 07:24:45 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:59114 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236559AbhHWLYg (ORCPT ); Mon, 23 Aug 2021 07:24:36 -0400 Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id EFE1321F5C; Mon, 23 Aug 2021 11:23:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1629717832; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EayIZPvEx8NBX6gVMYZJJQtq+PDoTIWp/jqWnTRrcoI=; b=oRNFq04/+fpitigIPbdiK59exX9c56+BEa8yZNZEXW3Bepbz+MMmxvLcBkbmwN2BfUrjzK m7SNRUJefhW2s1AZattSrlP9jgkXiuN3LhG92j+ByhQoeYfu+MbbuCYPlvFVeDA6DszuLn yGMAMNlJGrJfc+Nvuk7C/zM/P4R+bbQ= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1629717832; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EayIZPvEx8NBX6gVMYZJJQtq+PDoTIWp/jqWnTRrcoI=; b=tcWvOCqER0uNdYm3BipT7jlGUb5GAnKqoXJIaCXd6EukIj6/aiYxobw3YuPu8xdFO9nMep wbaFbKvOD39/6TBg== Received: from adalid.arch.suse.de (adalid.arch.suse.de [10.161.8.13]) by relay2.suse.de (Postfix) with ESMTP id 37286A3BC1; Mon, 23 Aug 2021 11:23:52 +0000 (UTC) Received: by adalid.arch.suse.de (Postfix, from userid 17828) id 2257F518D88F; Mon, 23 Aug 2021 13:23:52 +0200 (CEST) From: Daniel Wagner To: linux-nvme@lists.infradead.org Cc: linux-kernel@vger.kernel.org, James Smart , Keith Busch , Ming Lei , Sagi Grimberg , Hannes Reinecke , Wen Xiong , Himanshu Madhani , James Smart , Daniel Wagner Subject: [PATCH v6 3/3] nvme-fc: Remove freeze/unfreeze around update_nr_hw_queues Date: Mon, 23 Aug 2021 13:23:51 +0200 Message-Id: <20210823112351.82899-4-dwagner@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210823112351.82899-1-dwagner@suse.de> References: <20210823112351.82899-1-dwagner@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: James Smart Remove the freeze/unfreeze around changes to the number of hardware queues. Study and retest has indicated there are no ios that can be active at this point so there is nothing to freeze. This patch primarily reverts 883837ed0f1f "nvme-fc: wait for queues to freeze before calling update_hr_hw_queues". It's not an exact revert as it leaves the adjusting of hw queues only if the count changes. Signed-off-by: James Smart Signed-off-by: Daniel Wagner --- drivers/nvme/host/fc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index 48aaa753be44..b71d0c2d4d31 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -2957,9 +2957,7 @@ nvme_fc_recreate_io_queues(struct nvme_fc_ctrl *ctrl) dev_info(ctrl->ctrl.device, "reconnect: revising io queue count from %d to %d\n", prior_ioq_cnt, nr_io_queues); - nvme_wait_freeze(&ctrl->ctrl); blk_mq_update_nr_hw_queues(&ctrl->tag_set, nr_io_queues); - nvme_unfreeze(&ctrl->ctrl); } ret = nvme_fc_create_hw_io_queues(ctrl, ctrl->ctrl.sqsize + 1); -- 2.29.2