Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp404019pxb; Wed, 25 Aug 2021 06:07:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7Qr3ad4OdbOjt3jV3RVsASdlFhv2WdF9MN1efmrd3ooSvEfaeSD1C7jCHiCGZtvszX2Az X-Received: by 2002:a02:a619:: with SMTP id c25mr39461012jam.1.1629896847833; Wed, 25 Aug 2021 06:07:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629896847; cv=none; d=google.com; s=arc-20160816; b=Y6WN/X0GM2Wl/HsRZwuVgtL0ORVBib6EavKfHcQOEPg1+9uXnvdYdlVJ16VcWyB3ML q7JrfpSZ4YXgIE3RHVgxC4O6QVEXo8yrS1ZeQhNm6kGs/TWyrvnEMIJfaWpsu7CT2yJu xKRBoa+CiK2Bz/JEOls/5hQy3ohNQBrT3uS2/NkNYJAwaRUn3f2ulyzIuhVbWomHzf3h SY9M1J6LnDEFHIt55HbaJCbM+mqQqbTL2pyukV8NbzSEXkq3mFgaJDKuoC59jkkLLgIS LjTzATU9pftYX5+Oh9Liqr6vFE3lQvnqy/ESyICTAXN5YroW6tpGCUOVxA4D/j8z/Duu mP5Q== 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 :dkim-signature; bh=ihsN4xOKUhY3bLwnMqowm8Mza45SPZ5/Nz1hzigkS5E=; b=XHdoTqzSUvTLzXPCIn4JyvyCMZ23Es67HfaiNKEsnb6ICcdQacgYT9Iw8TDfhzydL8 ZxY4d/LMz2IqBWH8hv303yNZjgV5+05ocC+JIdV2VbaB12/2/XUV0HmsnPjrZpftTrTU Osqn6HxfVmWdT3fI5ZOvQJ+uWXlwNCU9rBPKrCws/zpPCgyddgBxsC21BfyVG1rewabE 2M7VHaTuCrK+LDF9EFDzzsSZiLI7rxLzbBvB9n45Udkp+QeHusE3oag4hWRriAa2LNWL 86+2XwCLxT161+jZk/6d8UenkgKMmiYqsXniaNII/Tv+bTWMmL9zyH0v6guBP8mcAdgI STTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Q4heCSpa; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 a94si3295024jai.31.2021.08.25.06.06.50; Wed, 25 Aug 2021 06:07:27 -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=Q4heCSpa; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; 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 S240632AbhHYNFK (ORCPT + 99 others); Wed, 25 Aug 2021 09:05:10 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:55068 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240538AbhHYNFK (ORCPT ); Wed, 25 Aug 2021 09:05:10 -0400 Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C7C63221A6; Wed, 25 Aug 2021 13:04:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1629896663; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ihsN4xOKUhY3bLwnMqowm8Mza45SPZ5/Nz1hzigkS5E=; b=Q4heCSpauOFtmTxA1j8v01hm93NGSHPEoSkME7BXMvXSYMBzhddDXB+eH90A5T+0rvvpx1 jCyW4gtQ9eGpJeUd0fPeHU8W/SaJTY8wwdRt0f56++NjsWlmf3inxAEOcl4GgU6OxM7A6R qeFHtyZG1OzfP01ldtbBGUZHvlU4KnA= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1629896663; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ihsN4xOKUhY3bLwnMqowm8Mza45SPZ5/Nz1hzigkS5E=; b=BEj/qJuDaLlxNbgQhHSvcOzi1ix9No6GdBxuPJ7zxPUFo4h4NLx1snItJJBMKlVgRZp/JN Ek0vZa3B0jlb+tCg== Received: from imap1.suse-dmz.suse.de (imap1.suse-dmz.suse.de [192.168.254.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap1.suse-dmz.suse.de (Postfix) with ESMTPS id B740513887; Wed, 25 Aug 2021 13:04:23 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap1.suse-dmz.suse.de with ESMTPSA id 93OOLNc/JmGFNQAAGKfGzw (envelope-from ); Wed, 25 Aug 2021 13:04:23 +0000 Date: Wed, 25 Aug 2021 15:04:23 +0200 From: Daniel Wagner To: Sagi Grimberg Cc: linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, James Smart , Keith Busch , Ming Lei , Hannes Reinecke , Wen Xiong , Himanshu Madhani , James Smart Subject: Re: [PATCH v6 3/3] nvme-fc: Remove freeze/unfreeze around update_nr_hw_queues Message-ID: <20210825130423.7tpeysh4xtcy2ark@carbon.lan> References: <20210823112351.82899-1-dwagner@suse.de> <20210823112351.82899-4-dwagner@suse.de> <025942a6-4f57-b005-eb77-e9eed143522c@grimberg.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <025942a6-4f57-b005-eb77-e9eed143522c@grimberg.me> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 24, 2021 at 01:38:20PM -0700, Sagi Grimberg wrote: > > 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. > > I see that fc doesn't freeze the queues, so it obviously wrong to > unfreeze them. But is it correct to not freeze the queues? nvme-fc is draining the queues in the error recovery path (__nvme_fc_abort_outstanding_ios). There are no request in the queues hence we don't have to freeze. The only reason to keep the freeze/unfreeze in this path would be to make it look alike the other transport. But it would be a no-op.