From: Gabriel Krisman Bertazi <krisman@suse.de>
To: Christoph Hellwig <hch@lst.de>, Jens Axboe <axboe@kernel.dk>
Cc: Damien Le Moal <dlemoal@kernel.org>, io-uring@vger.kernel.org
Subject: Re: [PATCH 4/5] man: add io_uring_prep_cmd_zone_reset_all.3 man page
Date: Wed, 15 Jul 2026 11:25:32 -0400 [thread overview]
Message-ID: <8733xk46mr.fsf@mailhost.krisman.be> (raw)
In-Reply-To: <20260715063947.2933606-5-hch@lst.de>
Christoph Hellwig <hch@lst.de> writes:
> Add doccumentation for the new zone reset all io_uring cmd.
>
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
> man/io_uring_prep_cmd_zone_reset_all.3 | 54 ++++++++++++++++++++++++++
> 1 file changed, 54 insertions(+)
> create mode 100644 man/io_uring_prep_cmd_zone_reset_all.3
>
> diff --git a/man/io_uring_prep_cmd_zone_reset_all.3 b/man/io_uring_prep_cmd_zone_reset_all.3
> new file mode 100644
> index 000000000000..251a300c5ed1
> --- /dev/null
> +++ b/man/io_uring_prep_cmd_zone_reset_all.3
> @@ -0,0 +1,54 @@
> +.\" Copyright (C) 2026 Christoph Hellwig <hch@lst.de>
> +.\"
> +.\" SPDX-License-Identifier: LGPL-2.0-or-later
> +.\"
> +.TH io_uring_prep_cmd_zone_reset_all 3 "Jul 14, 2026" "liburing-2.8" "liburing Manual"
liburing-2.16
> +.SH NAME
> +io_uring_prep_cmd_zone_reset_all \- prepare a zone_reset_all command
> +.SH SYNOPSIS
> +.nf
> +.B #include <liburing.h>
> +.PP
> +.BI "void io_uring_prep_cmd_zone_reset_all(struct io_uring_sqe *" sqe ", int " fd ");"
> +.fi
> +.SH DESCRIPTION
> +The
> +.BR io_uring_prep_cmd_zone_reset_all (3)
> +function prepares a zone_reset_all command request. The submission queue entry
> +.I sqe
> +is setup to reset all sequential write required zones on the block device
> +pointed to by
> +.IR fd .
> +
> +This command does not synchronize against concurrent file operations, including
> +but not limited to reads, write, ioctls and other uring_cmds and only performs
> +a best effort invalidation of the page cache for the device. The user has
> +to make sure that no other in-flight requests are modifying or reading the
> +range(s). If that is the case, it might result in stale page cache and data
> +inconsistencies.
> +
> +Available since Linux 7.TBD.
> +
> +.SH RETURN VALUE
> +None
> +.SH ERRORS
> +The CQE
> +.I res
> +field will contain the result of the operation. On success, this field will be
> +set to
> +.B 0 .
> +On error, a negative error value is returned. Note that where synchronous
> +system calls will return
> +.B -1
> +on failure and set
> +.I errno
> +to the actual error value, io_uring never uses
> +.IR errno .
> +Instead it returns the negated
> +.I errno
> +directly in the CQE
> +.I res
> +field.
> +.SH SEE ALSO
> +.BR io_uring_get_sqe (3),
> +.BR io_uring_submit (3),
> --
> 2.53.0
>
--
Gabriel Krisman Bertazi
next prev parent reply other threads:[~2026-07-15 15:25 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-15 6:39 support ZONE_RESET_ALL in liburing Christoph Hellwig
2026-07-15 6:39 ` [PATCH 1/5] configure: shorten the message for the discard command Christoph Hellwig
2026-07-15 8:27 ` Damien Le Moal
2026-07-15 6:39 ` [PATCH 2/5] man: fixups for io_uring_prep_cmd_discard.3 Christoph Hellwig
2026-07-15 8:28 ` Damien Le Moal
2026-07-15 6:39 ` [PATCH 3/5] liburiung: add io_uring_prep_cmd_zone_reset Christoph Hellwig
2026-07-15 8:30 ` Damien Le Moal
2026-07-15 15:09 ` Caleb Sander Mateos
2026-07-15 6:39 ` [PATCH 4/5] man: add io_uring_prep_cmd_zone_reset_all.3 man page Christoph Hellwig
2026-07-15 8:33 ` Damien Le Moal
2026-07-15 15:25 ` Gabriel Krisman Bertazi [this message]
2026-07-15 6:39 ` [PATCH 5/5] test: add zone_reset_all command test Christoph Hellwig
2026-07-15 8:35 ` Damien Le Moal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8733xk46mr.fsf@mailhost.krisman.be \
--to=krisman@suse.de \
--cc=axboe@kernel.dk \
--cc=dlemoal@kernel.org \
--cc=hch@lst.de \
--cc=io-uring@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox