]> www.infradead.org Git - users/hch/misc.git/commit
io_uring: enable passing a per-io write stream
authorKanchan Joshi <joshi.k@samsung.com>
Fri, 8 Nov 2024 19:36:26 +0000 (11:36 -0800)
committerChristoph Hellwig <hch@lst.de>
Tue, 19 Nov 2024 10:34:50 +0000 (11:34 +0100)
commitcbc3bdf074aeb6d056297f50f2b3d96b8a64b282
tree6873e8fd9fbe3e9b05688a60d2251aeeedac709b
parentc9b48535fb6612e407fde4deb26ac4de2d5ad142
io_uring: enable passing a per-io write stream

Allow userspace to pass a per-I/O write stream in the SQE:

__u16 write_stream;

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: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Nitesh Shetty <nj.shetty@samsung.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
[hch: s/write_hints/write_streams/g]
Signed-off-by: Christoph Hellwig <hch@lst.de>
include/uapi/linux/io_uring.h
io_uring/io_uring.c
io_uring/rw.c