From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (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 4C403379980 for ; Thu, 28 May 2026 08:44:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779957872; cv=none; b=p89Ii0u8norkJSS5DaX4INw0Peo3YbzZ49xDl1rTIvCqQyB9KqbXWGVQNhaRYARbvKy3ErKXiu2m+v5Uvl5c4lHNikYYBhboVuWQcJEZHA+7uXo1504wq0ynptn895OTpWgv98yMJd3ovU4qL6brrEgKgAPtmbT0wlu3Hy0K+zc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779957872; c=relaxed/simple; bh=eZRRcUDQOeoBdsjzzsoKmjfaf5z6sDTSAYxhP7mBXkE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=dDi1jJoWxan2GxmCj/Exrh7l3AnKKXdSmAqaLHEffU8TCzFwpXRjj7/ctwuwgsYCMojDssAym/sFNqSv35yAes/vsqAbqGZQBBdbRANDgWirR/Nf2KUxH7sUGrfO+cdceNIorJZQI4YIKq2Vx1W6hOdGOYUDBgOe4fDBtBmC2/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id B70E068C4E; Thu, 28 May 2026 10:44:28 +0200 (CEST) Date: Thu, 28 May 2026 10:44:28 +0200 From: Christoph Hellwig To: Keith Busch Cc: Christoph Hellwig , guzebing , axboe@kernel.dk, sagi@grimberg.me, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, Guzebing Subject: Re: [RFC PATCH 0/1] nvme-pci: detect I/O queue depth changes after reset Message-ID: <20260528084428.GA8248@lst.de> References: <20260527075320.3178600-1-guzebing1612@gmail.com> <20260527131951.GA11071@lst.de> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Wed, May 27, 2026 at 09:03:02PM -0600, Keith Busch wrote: > On Wed, May 27, 2026 at 03:19:51PM +0200, Christoph Hellwig wrote: > > On Wed, May 27, 2026 at 03:53:19PM +0800, guzebing wrote: > > > This RFC instead takes the smaller approach of detecting the reset-time > > > CAP.MQES change and making it visible. If the live I/O queue depth > > > shrinks, reset recovery is failed before recreating I/O queues. If it > > > grows, the driver warns and continues with the existing queue resources. > > > > Unlike the other version this at least sounds doable without creating > > a complete mess. So if we can live with this version that'd make me > > much happier. > > Abandoning the device here sounds pretty harsh when blk-mq already > supports user space decreasing the q-depth on a live queue. Why can't > the driver do the same thing? Reducing capabilities with a firmware upgrade is a losing proposition, there's just way too many things that can go wrong. And reducing the queue depth is one of the haŃ–riest operation in blk-mq. I wish we had never supported it, but allowing it with a remove trigger sounds really bad.