From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 131D34035CA; Tue, 24 Mar 2026 15:05:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774364749; cv=none; b=HzZf80qb6IBRQ4SJXUzuRBqOEzomy7mKFWHS08xftwiHBm6ZZmtT38tSlS6KYrftI0kDadufm9tf52K4kVYIiAQHPQGaGsMYC9a5RwGsASryHOnFgDmw5G0eNb+c1NAM6NVAoPU+dmQBc6cw1TpU31WTy/g+XqspdE76h/WTRCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774364749; c=relaxed/simple; bh=5hFAGOIzp/eMo2BkSnj3ruVd7WQWbN7gZFXvH2KCv+Y=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=nodc0yXbdoyOQ/VFG1GW5I/B2c3ScdocPwjGg5Y8RX/YHRaUVzoFCNpJ9B+dluHYIWIsI/5/Rl+POgdV1ATq8knGVHzNY1Bv96pJZ8WrEniIuZBZN0KwChEyG/TYpxXrwU780/RaGBw4QzlUyhbBco9JFwR39aJ8ZHNRS1Jm1c8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=ElhEJc24; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="ElhEJc24" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D306C19424; Tue, 24 Mar 2026 15:05:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1774364749; bh=5hFAGOIzp/eMo2BkSnj3ruVd7WQWbN7gZFXvH2KCv+Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ElhEJc243dMRGNhh5WR3M6+3lYx8CnlrfHG+ghChZamKkWoPDQTO8mDTNXbRSn+Fi Jyr7agja58P1NlLahPI91zRrfVd9dxvRY+tiNS1QtfmW7ruOF1uw+UuBo3FJMRDM1T M+nLih80AFFJ2fN9TferKAiM/QvyaKNdEkIdWIxtJQkt91chTTAE9FVcqlJkMJ5/WR UkiQMy0r5A2y1HOxMnXifQG34eVN3HN4wCEYj1QFqXmt6uMHHH1vAkbXAzNClTHxbH ZAoxmXMXwrWyAImGq3OH0zZxusWTaq6eYoDSW9cQ+M8HxTXwkUmLZ57v281NAEl13u Or+9f1wZ2RE0Q== Date: Tue, 24 Mar 2026 09:05:46 -0600 From: Keith Busch To: Bob Beckett Cc: Jens Axboe , Christoph Hellwig , Sagi Grimberg , kernel@collabora.com, stable@vger.kernel.org, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] nvme: respect NVME_QUIRK_DISABLE_WRITE_ZEROES when wzsl is set Message-ID: References: <20260320192217.365936-1-bob.beckett@collabora.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260320192217.365936-1-bob.beckett@collabora.com> On Fri, Mar 20, 2026 at 07:22:08PM +0000, Bob Beckett wrote: > --- > 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 766e9cc4ffca..ce25c8a4e84b 100644 > --- a/drivers/nvme/host/core.c > +++ b/drivers/nvme/host/core.c > @@ -3388,7 +3388,7 @@ static int nvme_init_non_mdts_limits(struct nvme_ctrl *ctrl) > > ctrl->dmrl = id->dmrl; > ctrl->dmrsl = le32_to_cpu(id->dmrsl); > - if (id->wzsl) > + if (id->wzsl && !(ctrl->quirks & NVME_QUIRK_DISABLE_WRITE_ZEROES)) > ctrl->max_zeroes_sectors = nvme_mps_to_sectors(ctrl, id->wzsl); Interesting. This is from a more recent identification that I would have hoped devices going through the trouble of implementing it would have figured out by now how to report write zeroes support correctly. Patches applied to nvme-7.1, thanks.