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 E840D4C3BC for ; Mon, 29 Jan 2024 06:16:00 +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=1706508962; cv=none; b=tMspCLavx4BXZRNSjD4bYneNkwrbycOLSDZoDSYfSeLkRJTHiaEvet0WjkKPqQgkwDg9qoc/yoQaJxUN9d0gzKSds1HeYZMBItO8YP+HvWSJkpOZ8lZgjjokOmAIW2yYBKcmpWMtSVkZmZ/fWfiRub6V0PwmBuJjNQi4QPvHRCU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706508962; c=relaxed/simple; bh=ieuFyRk0AzIW931GqByvWNx31HIOL29T6r74fJkxttA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QR6rRtt5oHOI2X+flHMcq31u4Up/2hvvt1NOAk3+ZbkZWxbfNvJ3QeUv+qkHbfsxQUiztXS6F6Rl6mN30JvrXFJ7uzOZA6XH1zf5AJfDLfDFC/AMtGWXWH6Z94tWyVFQCPbLgbbwgAJqenfbOG8JXZIOakvAW7J+CFHTnjAawAE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (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=none (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 8584968B05; Mon, 29 Jan 2024 07:15:54 +0100 (CET) Date: Mon, 29 Jan 2024 07:15:53 +0100 From: Christoph Hellwig To: Bart Van Assche Cc: Christoph Hellwig , Jens Axboe , "Michael S. Tsirkin" , Jason Wang , Xuan Zhuo , Paolo Bonzini , Stefan Hajnoczi , "Martin K. Petersen" , Damien Le Moal , Keith Busch , Sagi Grimberg , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, virtualization@lists.linux.dev, Hannes Reinecke Subject: Re: [PATCH 01/14] block: move max_{open,active}_zones to struct queue_limits Message-ID: <20240129061553.GA19581@lst.de> References: <20240128165813.3213508-1-hch@lst.de> <20240128165813.3213508-2-hch@lst.de> Precedence: bulk X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) On Sun, Jan 28, 2024 at 03:32:32PM -0800, Bart Van Assche wrote: >> @@ -307,6 +305,8 @@ struct queue_limits { >> unsigned char discard_misaligned; >> unsigned char raid_partial_stripes_expensive; >> bool zoned; >> + unsigned int max_open_zones; >> + unsigned int max_active_zones; > > Not all struct queue_limits instances are associated with a gendisk. Do we need > a way to separate the limits that apply to all request queues from the limits > that only apply to disks in struct queue_limits, e.g. a comment that separates > the two? I've actually been thinking about that for a while. It does sound like a good idea but I wonder how practical it is. But that is on the table for after we've sorted out the basic API problems, as that makes splitting it much easier if we do that eventually.