Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1059056pxk; Mon, 31 Aug 2020 08:42:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxEycNStqoUzAADUVoBn02Qladz9ONI2XzLERyB9uA+DuoCD/EFnoB22t/M3LH95mhTLswS X-Received: by 2002:a50:e70e:: with SMTP id a14mr1689224edn.93.1598888576457; Mon, 31 Aug 2020 08:42:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598888576; cv=none; d=google.com; s=arc-20160816; b=Aqih+ELaQH7pFSsPBnWuiveF+rMndgcdRX3Lb/oeGb2+3IJJ058vpFxz0C5hCK/t5I j23zqB0qPcNl5px9DI4qV9BVSV5CU/RDkukJGvAboHS3Wt1JNM17lhmo7LBvmv3FuHcq PnyPlr8BZ0ki9tRfsc1a74ci8yldpNvtjHcG1RxqiAX3n99tr9PdixjAO9Gylc7zhuOE 3OATFCPw58QnJsoIURyWaybGnZu0ZUG9oTDnaVeMk2LJcYP1pmf0MwMVGYK/bGwx37Ys PPEfbSRAIz4RFRB7U2vT3Y/qS/jo7kZVnCi53oXSyKj9FK1oguUTSQ1bBbgti6S6gKxa Somw== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=pW5wWOXfVfl9CJmYFhENf3AoLNxJznakZ5fOeJenvXI=; b=r1vHSV0asAXtpSLg9f8cogOo3NABjS/yeVlG71/wmvmKaM/slE7CzZxMgjvgMWfDS6 wU31123xbfLhYwIhpATKYqNPSa2xlLNQXPaAIdAVVeIUi7s015d7mKlHGGjdWxx1wdPm WlGTE5U/Qamm7s6hFrBhmpiIloJBJ8cLjlXSdOF0AoAUUsBk35L41AtZLUp4u9/LEDPe SO5eCv75PjImdPmQsv7DN57YSBqL+GnDMFyTXGBEQytsZdkFfsvNfIRF3jH7+zkcOZ1B /U24xTfNsswL1pUFelESHXO2yKMOZHUfNBxd13rQF0DaYyq5M8p3/ZyR7LfIl5nleflp UXNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=za9rohno; 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 b20si5137093eds.592.2020.08.31.08.42.32; Mon, 31 Aug 2020 08:42:56 -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=@kernel.org header.s=default header.b=za9rohno; 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 S1729335AbgHaPkj (ORCPT + 99 others); Mon, 31 Aug 2020 11:40:39 -0400 Received: from mail.kernel.org ([198.145.29.99]:38790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728472AbgHaP3x (ORCPT ); Mon, 31 Aug 2020 11:29:53 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3BD7C20767; Mon, 31 Aug 2020 15:29:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1598887793; bh=Va+uG3982E/A+B5LOqE36PWBGeYhfsCtVJhExIKAmXE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=za9rohnoRqlV6zkmXx7+X0B8qbEjhsDVHGtNoTAhB5nm8TUle5PcOdlgm8AOJ4qKy DRrp+lLS81VyOB1G9ZA0LPXsiX0oG/HTO6Kq0hKCWORq4b1XvYSEU2pjMqRW6QGqS7 P3svqIMya753FiOhvlq5ruwqnHhygZ614cBRK1SQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Keith Busch , Sagi Grimberg , Jens Axboe , Sasha Levin , linux-nvme@lists.infradead.org Subject: [PATCH AUTOSEL 5.8 11/42] nvme: skip noiob for zoned devices Date: Mon, 31 Aug 2020 11:29:03 -0400 Message-Id: <20200831152934.1023912-11-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200831152934.1023912-1-sashal@kernel.org> References: <20200831152934.1023912-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Keith Busch [ Upstream commit c41ad98bebb8f4f0335b3c50dbb7583a6149dce4 ] Zoned block devices reuse the chunk_sectors queue limit to define zone boundaries. If a such a device happens to also report an optimal boundary, do not use that to define the chunk_sectors as that may intermittently interfere with io splitting and zone size queries. Signed-off-by: Keith Busch Signed-off-by: Sagi Grimberg Signed-off-by: Jens Axboe Signed-off-by: Sasha Levin --- drivers/nvme/host/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index f38548e6d55ec..6ea0bab621df3 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1975,7 +1975,7 @@ static int __nvme_revalidate_disk(struct gendisk *disk, struct nvme_id_ns *id) } } - if (iob) + if (iob && !blk_queue_is_zoned(ns->queue)) blk_queue_chunk_sectors(ns->queue, rounddown_pow_of_two(iob)); nvme_update_disk_info(disk, ns, id); #ifdef CONFIG_NVME_MULTIPATH -- 2.25.1