Re: [PATCHv12 07/12] io_uring: enable per-io write streams

Hannes Reinecke
2024-12-09T08:31:19Z

On 12/6/24 23:17, Keith Busch wrote:
> From: Keith Busch <kbusch@kernel.org>
>
> Allow userspace to pass a per-I/O write stream in the SQE:
>
> __u8 write_stream;
>
> The __u8 type matches the size the filesystems and block layer support.
>
> Application can query the supported values from the statx
> max_write_streams field. Unsupported values are ignored by file
> operations that do not support write streams or rejected with an error
> by those that support them.
>
> Signed-off-by: Keith Busch <kbusch@kernel.org>
> ---
> include/uapi/linux/io_uring.h | 4 ++++
> io_uring/io_uring.c | 2 ++
> io_uring/rw.c | 1 +
> 3 files changed, 7 insertions(+)
>
Reviewed-by: Hannes Reinecke <hare@suse.de>

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