From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 52CFE29E112 for ; Wed, 5 Nov 2025 07:11:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762326676; cv=none; b=LhmRD/xXIlTSS6HfkJ8ds/uLvsMTPoHYgMTF+Xbwx7hE6clInUs3mNGzYChO6YysYHgIcLnJ7H6hB/FpFf4M3xxQHZGkVSU2YPRlysWys7pt5MHhHOXfMl/OC13JOisqX5z99WIsJG/L3k7LeZ4kwFgnz/qK1lFph6ASQIGPmcc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762326676; c=relaxed/simple; bh=NeOjyGUvIJClEzs3f/I0sHmcKLxtKshZp1sUOHpHgVE=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=fILuBRlhVARb/JkkK3tfKdWaKuJlXcY/uW+QK4ybVxLUvgLD3ZZwIHoLZJYN+/cTdHSf9/4aItbHSZtujYv6x0l4BQb6tJp0dT+jX7iWwcgoIVt8HcGXHaVP4ncq0OIBIfoKmsuCBJK1L5JRUlXdEG1gkyjQLTClSxTUNQs7MWI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=rFnoBMMw; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=GOw5CN6I; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=rFnoBMMw; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=GOw5CN6I; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="rFnoBMMw"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="GOw5CN6I"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="rFnoBMMw"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="GOw5CN6I" Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 7F72A1F397; Wed, 5 Nov 2025 07:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1762326673; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ksQCo3Ad1VfdJUV7onmvH6G6iW7WglY8N/GR2YtrkfM=; b=rFnoBMMwQCLrredczS2A+OGMgWFLLPlw5ExzGSiORskXO20tfdCrPFZIJ0ffVxegdjJeHt OkgdU+1dVIlrG/PyFmc1JDAksS0GnSMnLvw7PRnjOO+hTbnKlHmQaNMPRaMnlN5tHi+DKW FEoYRnPvcnaEpwQNsu+IYxus4OwfND0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1762326673; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ksQCo3Ad1VfdJUV7onmvH6G6iW7WglY8N/GR2YtrkfM=; b=GOw5CN6IiaZ+5r4zEgIp0v2E9r3ZHclMbanpQGZnp9ck8XswOuAQaFIYkLdg6wI/7Abo1i pvCofUH3YJw2XRAg== Authentication-Results: smtp-out2.suse.de; dkim=pass header.d=suse.de header.s=susede2_rsa header.b=rFnoBMMw; dkim=pass header.d=suse.de header.s=susede2_ed25519 header.b=GOw5CN6I DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1762326673; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ksQCo3Ad1VfdJUV7onmvH6G6iW7WglY8N/GR2YtrkfM=; b=rFnoBMMwQCLrredczS2A+OGMgWFLLPlw5ExzGSiORskXO20tfdCrPFZIJ0ffVxegdjJeHt OkgdU+1dVIlrG/PyFmc1JDAksS0GnSMnLvw7PRnjOO+hTbnKlHmQaNMPRaMnlN5tHi+DKW FEoYRnPvcnaEpwQNsu+IYxus4OwfND0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1762326673; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ksQCo3Ad1VfdJUV7onmvH6G6iW7WglY8N/GR2YtrkfM=; b=GOw5CN6IiaZ+5r4zEgIp0v2E9r3ZHclMbanpQGZnp9ck8XswOuAQaFIYkLdg6wI/7Abo1i pvCofUH3YJw2XRAg== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id B449D132DD; Wed, 5 Nov 2025 07:11:12 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id vZMZKpD4CmnXFAAAD6G6ig (envelope-from ); Wed, 05 Nov 2025 07:11:12 +0000 Message-ID: Date: Wed, 5 Nov 2025 08:11:12 +0100 Precedence: bulk X-Mailing-List: linux-xfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 11/15] block: introduce BLKREPORTZONESV2 ioctl To: Damien Le Moal , Jens Axboe , linux-block@vger.kernel.org, linux-nvme@lists.infradead.org, Keith Busch , Christoph Hellwig , dm-devel@lists.linux.dev, Mike Snitzer , Mikulas Patocka , "Martin K . Petersen" , linux-scsi@vger.kernel.org, linux-xfs@vger.kernel.org, Carlos Maiolino , linux-btrfs@vger.kernel.org, David Sterba References: <20251104013147.913802-1-dlemoal@kernel.org> <20251104013147.913802-12-dlemoal@kernel.org> Content-Language: en-US From: Hannes Reinecke In-Reply-To: <20251104013147.913802-12-dlemoal@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Level: X-Spam-Flag: NO X-Rspamd-Queue-Id: 7F72A1F397 X-Rspamd-Action: no action X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.51 / 50.00]; BAYES_HAM(-3.00)[100.00%]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; MX_GOOD(-0.01)[]; RBL_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:104:10:150:64:97:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_TWELVE(0.00)[15]; RECEIVED_SPAMHAUS_BLOCKED_OPENRESOLVER(0.00)[2a07:de40:b281:106:10:150:64:167:received]; MIME_TRACE(0.00)[0:+]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; SPAMHAUS_XBL(0.00)[2a07:de40:b281:104:10:150:64:97:from]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DBL_BLOCKED_OPENRESOLVER(0.00)[lst.de:email,suse.de:dkim,suse.de:mid,suse.de:email]; DNSWL_BLOCKED(0.00)[2a07:de40:b281:106:10:150:64:167:received,2a07:de40:b281:104:10:150:64:97:from]; DKIM_TRACE(0.00)[suse.de:+] X-Spam-Score: -4.51 On 11/4/25 02:31, Damien Le Moal wrote: > Introduce the new BLKREPORTZONESV2 ioctl command to allow user > applications access to the fast zone report implemented by > blkdev_report_zones_cached(). This new ioctl is defined as number 142 > and is documented in include/uapi/linux/fs.h. > > Unlike the existing BLKREPORTZONES ioctl, this new ioctl uses the flags > field of struct blk_zone_report also as an input. If the user sets the > BLK_ZONE_REP_CACHED flag as an input, then blkdev_report_zones_cached() > is used to generate the zone report using cached zone information. If > this flag is not set, then BLKREPORTZONESV2 behaves in the same manner > as BLKREPORTZONES and the zone report is generated by accessing the > zoned device. > > Signed-off-by: Damien Le Moal > Reviewed-by: Christoph Hellwig > --- > block/blk-zoned.c | 25 ++++++++++++++++++++++--- > block/ioctl.c | 1 + > include/uapi/linux/blkzoned.h | 32 +++++++++++++++++++++++++++----- > include/uapi/linux/fs.h | 2 +- > 4 files changed, 51 insertions(+), 9 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- Dr. Hannes Reinecke Kernel Storage Architect hare@suse.de +49 911 74053 688 SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich