io_uring: expose read/write attribute capability
authorAnuj Gupta <anuj20.g@samsung.com>
Thu, 5 Dec 2024 06:21:09 +0000 (11:51 +0530)
committerJens Axboe <axboe@kernel.dk>
Sat, 11 Jan 2025 00:12:42 +0000 (17:12 -0700)
commit94d57442e56d2ad2ca20d096040b8ae6f216a921
tree2871a0d76f926c05d9be24a31c2ba7968d0b77ea
parentb08e02045002e0412441d5243b0ee1a9bfc3952b
io_uring: expose read/write attribute capability

After commit 9a213d3b80c0, we can pass additional attributes along with
read/write. However, userspace doesn't know that. Add a new feature flag
IORING_FEAT_RW_ATTR, to notify the userspace that the kernel has this
ability.

Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Li Zetao <lizetao1@huawei.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Tested-by: Martin K. Petersen <martin.petersen@oracle.com>
Reviewed-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20241205062109.1788-1-anuj20.g@samsung.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/uapi/linux/io_uring.h
io_uring/io_uring.c