diff options
author | Caleb Sander Mateos <csander@purestorage.com> | 2025-07-08 23:22:10 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-07-18 21:34:56 +0300 |
commit | 733c43f1df34f9185b945e6f12ac00c8556c6dfe (patch) | |
tree | 11afa9a11d1a0cef38d61c08dde9247d9ddb3a8e /include/linux/io_uring/cmd.h | |
parent | 262ab205180d2ba3ab6110899a4dbe439c51dfaa (diff) | |
download | linux-733c43f1df34f9185b945e6f12ac00c8556c6dfe.tar.xz |
io_uring/cmd: introduce IORING_URING_CMD_REISSUE flag
Add a flag IORING_URING_CMD_REISSUE that ->uring_cmd() implementations
can use to tell whether this is the first or subsequent issue of the
uring_cmd. This will allow ->uring_cmd() implementations to store
information in the io_uring_cmd's pdu across issues.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Acked-by: David Sterba <dsterba@suse.com>
Link: https://lore.kernel.org/r/20250708202212.2851548-3-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/linux/io_uring/cmd.h')
-rw-r--r-- | include/linux/io_uring/cmd.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/io_uring/cmd.h b/include/linux/io_uring/cmd.h index 53408124c1e5..29892f54e0ac 100644 --- a/include/linux/io_uring/cmd.h +++ b/include/linux/io_uring/cmd.h @@ -8,6 +8,8 @@ /* only top 8 bits of sqe->uring_cmd_flags for kernel internal use */ #define IORING_URING_CMD_CANCELABLE (1U << 30) +/* io_uring_cmd is being issued again */ +#define IORING_URING_CMD_REISSUE (1U << 31) struct io_uring_cmd { struct file *file; |